From e012f52b389bbbef5374023c91956819e09c17a7 Mon Sep 17 00:00:00 2001 From: wjoe Date: Thu, 22 Dec 2011 15:08:48 +0000 Subject: Added quarts to imperial measurements --- blaconvert.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'blaconvert.java') 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++) { -- cgit v1.2.3