1.

1. Write down the syntax to input a stringthroughthe Scannerclass with example .What is thethe use of Keyboardof Keyboard input?plz give the example for first one..... plz related to string only. Thankyou​

Answer»

ong>Answer:

In Java, there are MANY ways to read strings from input. The simplest one is to make use of the class SCANNER, which is part of the java. util LIBRARY and has been newly introduced in Java 5.0.

Explanation:



Discussion

No Comment Found