@Test public void testIterateMap() throws Exception { Foo foo = getBean(Foo.class); foo.iterateMap(); }
public void iterateMap() { Set<String> keys = accounts.keySet(); for (String key : keys) { System.out.println("Key : " + key + ", value: " + accounts.get(key)); } }
Foo { public void iterateMap() { Set<String> keys = accounts.keySet(); for (String key : keys) { System.out.println("Key : " + key + ", value: " + accounts.get(key)); } } }
Foo { public void iterateMap() { Set<String> keys = accounts.keySet(); for (String key : keys) { System.out.println("Key : " + key + ", value: " + accounts.get(key)); } } Foo();  Foo(Bar bar, Baz baz);  Foo(Map<String, Float> accounts); }
Foo { public void iterateMap() { Set<String> keys = accounts.keySet(); for (String key : keys) { System.out.println("Key : " + key + ", value: " + accounts.get(key)); } } Foo();  Foo(Bar bar, Baz baz);  Foo(Map<String, Float> accounts); void iterateMap(); void setAccounts(Map<String, Float> accounts); @Override String toString(); }
Foo { public void iterateMap() { Set<String> keys = accounts.keySet(); for (String key : keys) { System.out.println("Key : " + key + ", value: " + accounts.get(key)); } } Foo();  Foo(Bar bar, Baz baz);  Foo(Map<String, Float> accounts); void iterateMap(); void setAccounts(Map<String, Float> accounts); @Override String toString();  }