hi, those are my solutions how to iterate trough array.
String str = new String 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 = "abc".
.clone() need to read/learn about this one, advantages disadvantages and how to use it properly.
yes i tried this one:
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
Syntax error on token "3", delete this token