Today I had a strange experience when using a for loop in Java, which I really can't explain. That's my code snippet:
List<String[]> list;
....
for (String[] tmp : list.get(0)) {
...
}
This code snippet isn't compiling, because list.get(0) is returning a String an not an array of Strings. But why?