gitweb on Svarog

projekti pod git sistemom za održavanje verzija -- projects under the git version control system
StatSet, ispravljen ispis broja elemenata
authorDoni Pracner <quinnuendo@gmail.com>
Sat, 19 Nov 2016 15:22:29 +0000 (16:22 +0100)
committerDoni Pracner <quinnuendo@gmail.com>
Sat, 19 Nov 2016 15:22:29 +0000 (16:22 +0100)
Hash/boje-i-automobili/StatSet.java
Hash/primeri/StatSet.java

index 3e1e37f..65886b6 100644 (file)
@@ -163,7 +163,7 @@ public class StatSet<E> extends AbstractSet<E> {
        }
 
        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();
index 3e1e37f..65886b6 100644 (file)
@@ -163,7 +163,7 @@ public class StatSet<E> extends AbstractSet<E> {
        }
 
        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();
Svarog.pmf.uns.ac.rs/gitweb maintanance Doni Pracner