Scanner class is used to read input. — Scanner scan = new Scanner(System.in); This is the general syntax for reading from stain using the scanner class. This can be accessed using variable name scan. And don't forget to close it after reading input. scan.close();

J
picture loading error handler
10 thought(s)10

Java

tips and tricks
#CS #Computer #C# #Java
Get

Explore more quotes