在给定的代码中,
输入:
1
7输出:
1
输出应该是 7。我错过了什么?
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);
}
}
*我也尝试使用扫描仪