I am having trouble with a simple code that has to do with choosing a string.
Here is the code and thanks for all the support and help ahead of time. Eric
import java.util.Scanner;
/**
* Write a description of how to choose a string.
*/
public class StringAB
{
public static void main (String [] args) {
System.out.println("Please Choose String A or B");
Scanner input = new Scanner (System. in);
String name = input.nextLine();
String A = "Hey";
String B = "Man";
System.out.println(B);
System.out.println(A);
}
}