From 5d0e003c53b7b5693448603cb2b4f2a8fb4826b1 Mon Sep 17 00:00:00 2001 From: Athi Dsh <32543864+Athi101@users.noreply.github.com> Date: Mon, 29 Oct 2018 11:38:32 +0530 Subject: [PATCH] Update Codechef.java --- Codechef.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Codechef.java b/Codechef.java index ec77212..a9971f9 100644 --- a/Codechef.java +++ b/Codechef.java @@ -4,12 +4,12 @@ class Codechef { public static void main (String[] args) throws java.lang.Exception { - Scanner scan = new Scanner(System.in); - int t = scan.nextInt(); + Scanner sc = new Scanner(System.in); + int t = sc.nextInt(); for(int i=0;i b) System.out.println(">"); @@ -18,5 +18,6 @@ else if(a < b) else System.out.println("="); } + sc.close; #better to close the scanner to prevent memory leakage } }