fork download
  1. import java.util.HashMap;
  2.  
  3. public class Main
  4. {
  5. public static void main(String[] args) throws Exception
  6. {
  7. HashMap<Integer, Integer> s = new HashMap<Integer, Integer>();
  8. Integer i = 1;
  9. Integer j = 2;
  10. Integer k = 3;
  11. s.put(i, k);
  12. s.put(j, k);
  13. s.put(k, k);
  14. System.out.println(s.values().size());
  15. }
  16. }
Success #stdin #stdout 0.07s 380160KB
stdin
Standard input is empty
stdout
3