Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package emotions;
- import java.util.Scanner;
- public class Emotions {
- public static void main(String[] args) {
- Scanner Gefühl = new Scanner(System.in);
- for(int i = 0; i < 2; i++){
- System.out.println("Wie geht es dir");
- String Emotion = Gefühl.nextLine();
- if (Emotion.equals("gut"))
- System.out.println("Das ist ja toll das es dir gut geht");
- else if (Emotion.equals("schlecht"))
- System.out.println("Das ist ja blöd das es dir schlecht geht");
- Gefühl.close();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement