Jarrod Herbert
2012-03-03 16:20:05 UTC
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
at Cliff.main(Cliff.java:7)
The following is my coding -
import java.util.Scanner;
public class Cliff {
/**
* @param args
*/
public static void main(String[] args) {
String choice;
Scanner user_in = new Scanner(System.in);
System.out.println("Welcome to the Cliff. Ahead, there is a cliff you can jump off of. Behind you, there is a charging axeman. You have a bow. What do you do?");
choice = user_in.nextLine();
if(choice.equals("Shoot the axeman")){
System.out.println("Your bow string broke and you're cut to peices.");
}else if(choice.equals("Jump off cliff")){
}System.out.println("Wise choice. Less of a mess.");
}else{
System.out.println("You were killed by the axeman due to lack of a proper choice.");
// TODO Auto-generated method stub
}
}