This is an example of my object array.
Ball[] Array= {BallGrid[4], BallGrid[5]};
This is how I tried printing it out but the output was finalproject.Ball@1dcc2a3.
for(Ball value : Array){
System.out.println(value);
}
How would I print out Array[0] so the value remains "BallGrid[4]"?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…