Nice TWiki > Doc > WordfreqIntermediateExample (r1.2 vs. r1.3) TWiki webs:
Dev | Doc | Main | TWiki | Sandbox
Doc . { Changes | Index | Search | Go }
 <<O>>  Difference Topic WordfreqIntermediateExample (r1.3 - 02 Sep 2003 - IsaacGouy)
Changed:
<
<

catch (IOException e) { System.err.println(e); }

>
>

catch (IOException e) { System.err.println(e); }

Deleted:
<
<

Changed:
<
<

// Using an external function in a foreach. entries.foreach(formatAndPrintLine); }

class Cell { int value; }

// package function void formatAndPrintLine(Map.Entry entry){

let StringBuffer? buffer = new StringBuffer?(32); let sCount = entry.getValue().value.toString(); var pad = 7 - sCount.length();

>
>

for (Map.Entry each : entries) { buffer.setLength(0); let count = each.getValue().value.toString(); var pad = 7 - count.length();

Changed:
<
<

buffer.append(sCount);

>
>

buffer.append(count);

Changed:
<
<

buffer.append(entry.getKey());

>
>

buffer.append(each.getKey());

Added:
>
>

}

class Cell { int value; }


Topic WordfreqIntermediateExample . { View | Diffs | r1.4 | > | r1.3 | > | r1.2 | More }
Revision r1.2 - 01 Sep 2003 - 12:09 GMT - ArjanB
Revision r1.3 - 02 Sep 2003 - 00:52 GMT - IsaacGouy
Copyright © 1999-2003 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback.