Hello,
When I run the following program (through Jcreator), I get the message:
The system couldn't find a suitable main method or htm(l) file in the active project".
If someone has got a few minutes to spend in making me less ignorant, thank you.
import java.util.Scanner;
import static java.lang.System.*;
public class choice{
public static void main(
String args[]){
Scanner myScanner=new Scanner(System.in);
out.println("If you want to make your brain to work, write 1");
int inputanswer=myScanner.nextInt();
if (inputanswer==1){
Scanner mysecondScanner=new Scanner(System.in);
out.println("2+2=?");
int answ=mysecondScanner.nextInt();
if (answ==4){
out.println("Right!");
}
else{
out.println("wrong");
}
}
else{
out.println("You're free");
}
}
}