Hallo, es soll falls das Wort "Scheiße" eingegeben wird soll pupsikaka ausgespuckt werden und falls das eingegebene wort nciht SCheiße ist soll das andere wort in groß ausgespuckt werden hat jemand ne Ahnung was hier nd klappt?
Java:
import java.util.Scanner;
public class UPKTestzwei {
public static void main(String[] args) {
Scanner olaf = new Scanner(System.in);
String s0 = olaf.next();
System.out.println("Liebe(r) " + s0 + ",");
String s1 = olaf.next();
if (s1.equals("Scheiße"))
{
System.out.println("das Wetter hier ist " + "pupsikaka"+ ".");
}
else
{
System.out.println("das Wetter hier ist " + s1.toUpperCase()+ ".");
}
System.out.println("Alles Gute!");
String s2 = olaf.next();
System.out.println("Dein(e) " + s2);
}
}