d) write a statement to perform the following:
i. to create a Scanner object
ii. to accept a character through scanner class
Answers
Answer:
please please please please please please please please please please please please please please please please please please please please please please please please please please please please please please please please please please please please please please please please please please
mark me as brainlaeistmark me as brainlaeistmark me as brainlaeistmark me as brainlaeistmark me as brainlaeistmark me as brainlaeistmark me as brainlaeistmark me as brainlaeistmark me as brainlaeistmark me as brainlaeistmark me as brainlaeistmark me as brainlaeistmark me as brainlaeistmark me as brainlaeistmark me as brainlaeistmark me as brainlaeistmark me as brainlaeistmark me as brainlaeistmark me as brainlaeistmark me as brainlaeistmark me as brainlaeist
Answer:
1. Scanner sc=new Scanner(System.in);
2. char ch=sc.next();