Java Tutorial: Getting User Input in Java | CodeWithHarry

PHOTO EMBED

Fri Jan 27 2023 13:05:23 GMT+0000 (Coordinated Universal Time)

Saved by @harleen_bhamra #java

Scanner S = new Scanner(System.in);  //(Read from the keyboard)
int a = S.nextInt();  //(Method to read from the keyboard)
content_copyCOPY

https://www.codewithharry.com/videos/java-tutorials-for-beginners-5/