write dowm the syntax to input a character through the scanner class with an example.
plz answer it fast
Answers
Answered by
3
Explanation:
import java.util.*;
class character
{
public void main()
{
Scanner Sc= new Scanner(System.in);
system.out.println("enter a character");
char ch= sc.next();
system.out.println("character is="+ch);
}
}
Similar questions
English,
3 months ago
Math,
3 months ago
Math,
7 months ago
Social Sciences,
7 months ago
Social Sciences,
11 months ago