Why is this happening, why isnt it giving me *ThisIsWhatItShouldBe
Code
class ArreyTable{
public static void main(String OKM[]){
System.out.println("Index\tValue");
int px[] = {144,240,360,480,720};
for(int counter=0; counter<px.length; counter++){
System.out.println(counter + "\t" + px);
}
}
}
cmd Result
Index Value
0 [I@7852e922
1 [I@7852e922
2 [I@7852e922
3 [I@7852e922
4 [I@7852e922
ThisIsWhatItShouldBe
Index Value
0 144
1 240
2 360
3 480
4 720