Hi,
Can anyone please explain the below code.
CODE : -
public class SampleClaass{
public static void main(
String []args){
int a;
a='A';
System.out.write(a);
System.out.write('\n');
}
}
Why there is \n require for getting the output as : A.
If i removed the second System.out.write('\n');. The code get compile but unable to print the output.
Thanks in advance.
Shankar Salunkhe