I have what may be a simple question but I can't seem to find an answer. Can variables be assigned with : (colon) in java. Like in this code below:
for(String token: tokens) {
System.out.println(token);
I saw this on one of the question boards for a different topic.
Thanks for responding.