this question is from the ongoing contest that’s why I hide the code.
import java.util.*;
import java. lang.*;
import java.io.*;
class Codechef
{
public static void main (String[] args) throws java. lang.Exception
{
BufferedReader reader =new BufferedReader(new InputStreamReader(System.in));
String t = reader.readLine();
while(t-->0)
{
/ something.....................
.....................................................
System.out.println("1");
else
System.out.println("2");
}
}
why I am getting this error
java.lang.NumberFormatException: For input string: “10 20 30 0 29 30”