From: Doni Pracner Date: Sat, 19 Nov 2016 15:22:29 +0000 (+0100) Subject: StatSet, ispravljen ispis broja elemenata X-Git-Url: https://svarog.pmf.uns.ac.rs/gitweb/?a=commitdiff_plain;h=981e372f7427c538c5cdeffb752998393682b3d0;p=spa2-materijali.git StatSet, ispravljen ispis broja elemenata --- diff --git a/Hash/boje-i-automobili/StatSet.java b/Hash/boje-i-automobili/StatSet.java index 3e1e37f..65886b6 100644 --- a/Hash/boje-i-automobili/StatSet.java +++ b/Hash/boje-i-automobili/StatSet.java @@ -163,7 +163,7 @@ public class StatSet extends AbstractSet { } public void printStats() { - System.out.printf("Different values:\t%6d\n", set.size()); + System.out.printf("Number of elements:\t%6d\n", set.size()); int numv = getNumberOfValues(); System.out.printf("Different values:\t%6d\t(%.2f %%)\n", numv, numv*100.0/set.size()); double avg = getAverageChainLength(); diff --git a/Hash/primeri/StatSet.java b/Hash/primeri/StatSet.java index 3e1e37f..65886b6 100644 --- a/Hash/primeri/StatSet.java +++ b/Hash/primeri/StatSet.java @@ -163,7 +163,7 @@ public class StatSet extends AbstractSet { } public void printStats() { - System.out.printf("Different values:\t%6d\n", set.size()); + System.out.printf("Number of elements:\t%6d\n", set.size()); int numv = getNumberOfValues(); System.out.printf("Different values:\t%6d\t(%.2f %%)\n", numv, numv*100.0/set.size()); double avg = getAverageChainLength();