Hello,
I am new to this site and
I am trying to submit solution of "universe" problem but i am getting compile error each time i am submitting the solution.
Here is my code:
public class Main {
public static void main (String[] args) throws java.lang.Exception
{
BufferedReader r = new BufferedReader (new InputStreamReader (System.in));
String s;
while (!(s=r.readLine()).startsWith("42")) System.out.println(s);
}
}
please tell me where i am going wrong.