import java.util.Scanner;
public class VerticalWire {
public static void main(String[] args)
{
Scanner in = new Scanner(System.in);
System.out.println("how many wires");
String howManyWires = in.next();
switch(howManyWires) {
case "3":
{
System.out.println("true");
break;
}
case "3 5":
{
System.out.println("false");break;}
}
}
}
I tested if I enter "3 5" it returns true even though I think it should return false! What is wrong?