5 ms·
JAVA for (int i:new int[]{1,2,3,4}) System.out.print(i%2==0?i:"");
by democracy 16y ago
JAVA
for (int i:new int[]{1,2,3,4}) System.out.print(i%2==0?i:"");
- lfborjas 16y agohehe, clever! although we are building a new list in the other languages, we're never using it, so this is just as good in the immediate context.