Answers for "what package is scanner in java"


java scanner

import java.util.Scanner;

// import scanner 

Scanner myScanner = new Scanner(; // Make scanner obj

String inputString = myScanner.nextLine(); // Take whole line

boolean inputBoolean = myScanner.nextBoolean(); //Boolean input

long inputLong = myScanner.nextLong(); //Interger,long ... input
Posted by: Guest on November-26-2019

Code answers related to "what package is scanner in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language