Update Switch.java

Removed Y verification