package testing;
import java.util.Scanner;
public class Example1 {
public static void main (String[] args){
String input;
String userInput;
String Joshua;
Scanner keyboard = new Scanner(System.in);
System.out.println("What is your name?");
input = keyboard.nextLine();
if (input != Joshua){
System.out.println("You aren't Joshua. Leave.");
}
}
}
//I am receiving the error in the "if" statement. What am I doing wrong? What do I have to do to initialise "Joshua"?