0
Why not found?
I can't make it work. I want that it say "fine". HHEELPP! PLEASE import java.util.Scanner; public class Program { public static void main(String[] args) { String az; Scanner quiz= new Scanner(System.in); az = quiz.nextLine(); String[] ans={"good", "sorry"}; if(az == "fine"){ System.out.println(ans [0]); }else{ System.out.println (ans[1]); } } }
1 Answer
0
It works, thank you



