From 981e372f7427c538c5cdeffb752998393682b3d0 Mon Sep 17 00:00:00 2001 From: Doni Pracner Date: Sat, 19 Nov 2016 16:22:29 +0100 Subject: [PATCH] StatSet, ispravljen ispis broja elemenata --- Hash/boje-i-automobili/StatSet.java | 2 +- Hash/primeri/StatSet.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.25.1