When trying to submit my first problem (life, universe, etc.) in Java, I got a Compilation error stating: "Could not create the Java virtual machine." The file got accepted on the second try, so the problem is probably not on my side.
The code looks like this:
import java.util.Scanner;
class LifeUniverseAndEverything {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (true) {
int i = sc.nextInt();
if (i == 42)
break;
System.out.println(i);
}
}
}