jungle camping: no output, no errors
no errors, no output, idk why it doesnt output anything, everything works until last checks for animal sounds for some reason import java.util.*; public class Program { public static void print(String x) { x += " "; System.out.print(x); } public static void main(String[] args) { Vector <String> v = new Vector <String>(); Scanner sc = new Scanner(System.in); while (sc.hasNext()) { v.add(sc.next()); } for (String word : v) { if (word == "Grr") { print("Lion"); continue; } if (word == "Rawr") { print("Tiger"); continue; } if (word == "Ssss") { print("Snake"); continue; } if (word == "Chirp") { print("Bird"); } } } }