I have a program I'm making where when the user type in a mood, it will output a quote based on it. I need to tell the program
if the user is happy, then output this text
The problem is, I don't know how to get the program to recognize the input and output the text based on it... here's what I have for code so far.
import java.util.Scanner;
public class modd {
public static void main(String arrgs[]) {
System.out.println("Enter your mood:");
Scanner sc = new Scanner(System.in);
String mood = sc.nextLine();
if (sc = happy) {
System.out.println("test");
if (sc = sad) {
System.out.println("I am sad");
}
}
}
}