hi, those are my solutions how to iterate trough array.
String[] str = new String[0] is a valid array with size 0. You can get index out of bound exception if you try to set or get a value from this array ex. a[0] = "abc".
.clone() need to read/learn about this one, advantages disadvantages and how to use it properly.
Hey Tim,
yes i tried this one:
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
Syntax error on token "3", delete this token