write the syntax of Import scanner class
in computer
Answers
Answered by
1
- import java.util.*;
- public class ScannerClassExample2 {
- public static void main(String args[]){
- String str = "Hello/This is JavaTpoint/My name is Abhishek.";
- //Create scanner with the specified String Object.
- Scanner scanner = new Scanner(str);
- System.out.println("Boolean Result: "+scanner.hasNextBoolean());
Answered by
3
Answer:
Example 3
import java.util.*;
public class ScannerClassExample2 {
public static void main(String args[]){
String str = "Hello/This is JavaTpoint/My name is Abhishek.";
//Create scanner with the specified String Object.
Scanner scanner = new Scanner(str);
System.out.println("Boolean Result: "+scanner.hasNextBoolean());
Explanation:
thank you
Similar questions
Physics,
9 days ago
History,
9 days ago
Geography,
9 days ago
English,
9 months ago
Psychology,
9 months ago