
public class testing { public static void main(String args[]) { char a; a=args[0]; System.out.println("character is:"+a); } }
what will be the above program output?

Hello Friend,
Try this:
public class testing {
public static void main(String args[])throws Exception {
int i=System.in.read();
char a=(char)i;
System.out.println("character is:"+a);
}
}
Thanks
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.