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]); } } }

21st Feb 2019, 7:48 PM
Franco Raguza Romero (franragui)
Franco Raguza Romero (franragui) - avatar
1 Answer
0
It works, thank you
21st Feb 2019, 9:26 PM
Franco Raguza Romero (franragui)
Franco Raguza Romero (franragui) - avatar