as i know that primitive arrays are given default value.
but even when the array declarations are made outside the main method output remain the same "nothing is displayed".
SCJP 5.0<br /> <br />"Skills are started with learning and mastered with improvement. Nothing is hereditary except death" BUDDHA...
posted 10 years ago
Hi, Try System.out.println("-"+y+"-"); Array element always get default values. Default char is '\u0000', invisibel, but you can see it occupies a character position between the two "-". Regards, Teo [ October 15, 2007: Message edited by: Teo Framoe ]