summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwjoe <joe@lc8n.com>2011-12-22 15:08:48 +0000
committerwjoe <joe@lc8n.com>2011-12-22 15:08:48 +0000
commite012f52b389bbbef5374023c91956819e09c17a7 (patch)
treea236a3b61476fe401c4d7d16d55f992544e17300
parente4d4fc2cadd3a0ea07feeee1d53e1f73e7795e8b (diff)
Added quarts to imperial measurements
-rw-r--r--blaconvert.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/blaconvert.java b/blaconvert.java
index e628319..5b9208f 100644
--- a/blaconvert.java
+++ b/blaconvert.java
@@ -29,6 +29,7 @@
- Added "same unit" error
- Ensure standard imperial measurements are used for some units - google defaults to US
1.2 - Replace crazy non unicode spaces with commas
+ 1.21 - Added quart to imperial measurements
TODO
- Raw output option - result only with no spaces/commas/units
@@ -49,7 +50,7 @@ public class blaconvert {
String sourceUnit = "";
String targetUnit = "";
String amount = "";
- String version = "1.2";
+ String version = "1.21";
/* Build query from query or arguments, depending on whether
arguments were given. */
@@ -107,7 +108,7 @@ public class blaconvert {
targetUnit = args[2];
}
- String[] imperial = {"pint", "gallon", "gal", "cup", "teaspoon", "tablespoon", "fl oz", "fluid ounce"};
+ String[] imperial = {"pint", "gallon", "gal", "cup", "teaspoon", "tablespoon", "fl oz", "fluid ounce", "quart"};
for(int i = 0; i < imperial.length; i++)
{