From 0557fbc35e2c9b6aeb52529f13d2fb6cb685718d Mon Sep 17 00:00:00 2001 From: Sushrut Shukla Date: Thu, 1 Oct 2020 09:32:13 +0530 Subject: [PATCH] Update Java_If-Else.java --- Java/Introduction/Java_If-Else.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Java/Introduction/Java_If-Else.java b/Java/Introduction/Java_If-Else.java index ba6f880..bc7f98a 100644 --- a/Java/Introduction/Java_If-Else.java +++ b/Java/Introduction/Java_If-Else.java @@ -29,10 +29,10 @@ public class Solution { - public static void main(String[] args) { + public static void main(String[] args) throws Exception { - Scanner sc=new Scanner(System.in); - int n=sc.nextInt(); + BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); + int n = Integer.parseInt(br.readLine()); String ans=""; if(n%2==1){ ans = "Weird";