Commit adc88498 authored by sam.pople's avatar sam.pople

line

parent 1095ed8e
No preview for this file type
......@@ -71,7 +71,7 @@ public class App {
Scanner sc = new Scanner(System.in);
System.out.print("Enter code: ");
String str = sc.next();
String str = sc.nextLine();
if (str == "999"){
System.out.println("Animals: ");
for (int i = 0; i < Animals.size(); i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment