Update AndGate.java