System.out.println( (int) character to lower case ("B");
Answers
Answer:
98
Explanation:
This is how you will write the program: (in bluej)
//to accept a charecter and diaplay its unicode
import java.util.Scanner;
class AcceptCharecter
{
public static void main()
{
Scanner sc=new Scanner(System.in);
int u;
char c;
System.out.print("Please enter a charecter:");
c=sc.next().charAt(0);
u=(int)c; //note this step...this converts the charecter into its unicode
System.out.println("Unicode is "+u);
}
}
--------------------------------------------------------------------------------------------------------------
I am in class 9 in ICSE board and I study Computer applications with Frank EMU BOOKS and ig the author is Devashis Chakraborty.
[Telling this as it might help you]
I actually didn't understand your question, but I hope this is what you were asking :)
What you wrote as Question, will give a error in bluej...so I didn't get it.
Plz mark as brainliest if it helps you :D