Permalink
Browse files

updates

  • Loading branch information...
1 parent 94bf27f commit 3a68995b35d48b5ea259c18214b9ec7a85e53a9f @bmaunde bmaunde committed Jul 16, 2012
@@ -104,7 +104,6 @@ private void printPrices(List<Future<String>> results) {
outputStr += result.get();
}
-// outputStr = outputStr.length()>2?outputStr.substring(0, (outputStr.length()-1)):outputStr;
print.println(outputStr.substring(0, outputStr.length()-1));
} catch (IOException | InterruptedException | ExecutionException e) {
@@ -166,9 +166,6 @@ public void run() {
produceProd = doFill(prodAtttr);
- int len = produceProd.getDescription().length();
-
- int p = (len >= 29) ? 29 : len;
outputSt = "";
for (int k = 0; k < produceProd.getUnits(); k++) {
@@ -53,7 +53,6 @@
GregorianCalendar gc = new GregorianCalendar();
DateFormat fmt = new SimpleDateFormat("yyyy/MM/dd");
String format = "%8.2f";
- float doubleConv;
//main execution block
public static void main(String[] args) {
@@ -224,7 +223,7 @@ public void printPrices() {
if (tmpProd.getUnits() > 0 && tmpProd != null) {
//now for the actual formatting
for (int k = 0; k < tmpProd.getUnits(); k++) {
- doubleConv = Float.parseFloat(df.format(tmpProd.getSellingPrice()));
+ float doubleConv = Float.parseFloat(df.format(tmpProd.getSellingPrice()));
outputStr += "R" + String.format(format,doubleConv) + fmt.format(tmpProd.getSellByDate()) + tmpProd.getDescription().substring(0, 31) + "\n";
}
}

0 comments on commit 3a68995

Please sign in to comment.