import java.util.Scanner;class DylanfatTester{ public static void main (String[] args) { Scanner scan = new Scanner( System.in ); string fat; System.out.print("Is Dylan fat? (Yes or No): "); fat = scan.nextLine(); if ( answer.equals("Yes") ) System.out.println("Haha fatty"); else System.out.println("Nobody likes him anyway"); }}
Standard input is empty
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
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!