What this code print if the input list is (3,44)
public String getString(List <Integer> list ){
return list.stream()
.map(I->i%2 == 0 ? "e" +i : "o"+i)
.collect(joining(","));
}
What this code print if the input list is (3,44)
public String getString(List <Integer> list ){
return list.stream()
.map(I->i%2 == 0 ? "e" +i : "o"+i)
.collect(joining(","));
}