In the given code,
Input:
1
7Output:
1
Output should be 7. What am I missing??
import java.io.*;
import java.util.*;
class compiler
{
public static void main(String args[] ) throws Exception
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int testcases = Integer.parseInt(br.readLine());
// System.out.println("If this statement is added it works as expected!")
int n=Integer.parseInt(br.readLine());
System.out.println(n);
}
}
*I also tried using scanner