Created
November 3, 2020 06:33
-
-
Save GaneshSamarthyam/325499875e4ca5d9871b2a4599ccbc9f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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