Map<String, Integer> map = S.map .<String, Integer>hashMap(new Object[][]{{"one", 1}, {"two", 2}}); _for(map).<String>map((a) -> ("" + a)).grepByValue((a) -> { S.echo(a); return true; }).each((a) -> (S.echo(a))); }
Map<String, Integer> map = S.map .<String, Integer>hashMap(new Object[][]{{"one", 1}, {"two", 2}}); _for(map).<String>map((a) -> ("" + a)).grepByValue((a) -> { S.echo(a); return true; }).each((entry) -> { S.echo(entry.getValue()); }); }
	public static void testMap() {		Map<String, Integer> map = S.map			.<String, Integer>hashMap(new Object[][]{{"one", 1},			{"two", 2}});		_for(map).<String>map((a) -> ("" + a)).grepByValue((a) -> {			S.echo(a);			return true;		}).each((a) -> (S.echo(a)));	}