Skip to content

Instantly share code, notes, and snippets.

@GaneshSamarthyam
Created November 3, 2020 06:33
Show Gist options
  • Save GaneshSamarthyam/325499875e4ca5d9871b2a4599ccbc9f to your computer and use it in GitHub Desktop.
Save GaneshSamarthyam/325499875e4ca5d9871b2a4599ccbc9f to your computer and use it in GitHub Desktop.
import java.util.Scanner;
class Main {
public static void main(String[] args) {
try {
Scanner scanner = new Scanner(System.in);
scanner.nextInt();
} catch (Exception e) {
System.out.println("enter an int");
} finally {
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment