Consider a simple case like this one :
public static void array()
{
String myString = "STACKOVERFLOW";
int [] checkVal = new int[myString.length()];
for(int i=0; i<myString.length();i++){
checkVal[i] = (int)myString.charAt(i);
}
System.out.println(checkVal[0]);
System.out.println(checkVal[1]);
System.out.println(checkVal[2]);
System.out.println(checkVal[3]);
System.out.println(checkVal[4]);
System.out.println(checkVal);
}
This will output the following :
83
84
65
67
75
[I@fc9944
Can some one please explain this to me ? How can I retrieve the proper information from the Array instead of it's memory allocation ?