fork download
  1. import java.util.Scanner;
  2. class DylanfatTester
  3. {
  4. public static void main (String[] args)
  5. {
  6. Scanner scan = new Scanner( System.in );
  7. string fat;
  8.  
  9. System.out.print("Is Dylan fat? (Yes or No): ");
  10. fat = scan.nextLine();
  11.  
  12. if ( answer.equals("Yes") )
  13. System.out.println("Haha fatty");
  14. else
  15. System.out.println("Nobody likes him anyway");
  16. }
  17. }
  18.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:7: cannot find symbol
symbol  : class string
location: class DylanfatTester
    string fat;
    ^
Main.java:12: cannot find symbol
symbol  : variable answer
location: class DylanfatTester
    if ( answer.equals("Yes") ) 
         ^
2 errors
stdout
Standard output is empty