Hi all,

Here's the prob ...

public class castIt {
public static void main(String args[]) {
char ch = 5;

byte b[][] = new byte[3][3];
b[1][2] = (byte) ch;

for(int i = 0; i < 3; i++) {
System.out.println( );
for(int j = 0; j < 3; j++) {
System.out.print(" " + b[j][i]);
}
}
System.out.println();
}
}

output is:
000
000
050

required output:
000
000
0☺0

I want the smilly face (char ch = 05 ... note this is better viewed in
a
dos window some IDE's will not display these ascii characters.
Hope this makes sense... and yes I do want the array of arrays to be of type
byte.

ThanksInAdvance
Xasting.