I have a string of "A   B   C" and I have this line of code to split it:
String[] reFormatted = TestString.split("   ");
System.out.println(reFormatted.toString());
and the output I get is this:
[Ljava.lang.String;@30f1c0
if I put this string array in a foreach loop like this:
for(String s : reFormatted){
   System.out.println(reFormatted);
}
I get the output of:
[Ljava.lang.String;@30f1c0
[Ljava.lang.String;@30f1c0
[Ljava.lang.String;@30f1c0
what is the problem here? what am I doing wrong?
 
    