}
1) Write down the syntax to accept an alphabet from the user and to store it in a character
variable using Scanner class
Answers
Answered by
0
Answer:
Syntax:-
Scanner in=new Scanner(System.in);
char ch,ch1;
System.out.println("Enter a character");
ch=in.next().charAt(0);
ch1=ch;
Similar questions