for (int i : array) {
System.out.println("Element at index " + i + " :" + array[0]);
}
This is not what you want:
for (int i : array) {
System.out.println("Element at index " + i + " :" + array[0]);
}
--
You received this message because you are subscribed to the Google Groups "vogella" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vogella+u...@googlegroups.com.
To post to this group, send email to vog...@googlegroups.com.
Visit this group at http://groups.google.com/group/vogella.
For more options, visit https://groups.google.com/groups/opt_out.