This is my code:
class writedemo {
public static void main(String args[]){
int b;
b=1;
System.out.write(b);
System.out.write('\n');
}
}
The output I got was the 'apl functional quad question' character(U+2370).
But this code worked:
class writedemo{
public static void main(String args[]){
int b;
b='A';
System.out.write(b);
System.out.write('\n');
}
}
It prints the character 'A'
. Can someone please help me? Am I missing anything?