 = Integer.parseInt(poop);
                break;
            case 6:
                handler.getPlayer(0).h2.x = Integer.parseInt(poop);
                break;
            case 7:
                handler.getPlayer(0).h2.y = Integer.parseInt(poop);
                break;
            case 8:
                handler.getPlayer(0).h1.punch = Boolean.getBoolean(poop);
                break;
            case 9:
                handler.getPlayer(0).h2.punch = Boolean.getBoolean(poop);
                break;
            }
        }catch(NumberFormatException e) {
            frame.setVisible(false);
            poop += " " + s.next(); 
            if(poop.equals("you lose")) new ResultDisplay("green");
            handler.hb2.resultDisplayed = true;
            stop();
        }
    }
    sendMessage(info);
    handler.tick();
}

public void sendMessage(String message) {
    pw.println(message);
    pw.flush();
}

private void init() {
    try {
        sersock = new ServerSocket(1111);
        sock = sersock.accept();
        br = new BufferedReader(new InputStreamReader(sock.getInputStream()));
        pw = new PrintWriter(sock.getOutputStream());
    } catch (IOException e) {
        e.printStackTrace();
    }
    // more game initialization code follows

The main game thread calls both the init() and tick() are called by the main game threads in both the projects

A:

In your try and catch around the switch on your server you handle the exception by actually setting the visibility of your frame to false and you don't print out the exception, thus explains why you don't get an exception.
}catch(NumberFormatException e) {
    frame.setVisible(false); //<-- This bit
    poop += " " + s.next(); 
    if(poop.equals("you lose")) new ResultDisplay("green");
    handler.hb2.resultDisplayed = true;
    stop();
}

Of course you catch it for a reason, but maybe you should print
= Integer.parseInt(poop); 
                 break; 
             case 6: 
                 handler.getPlayer(0).h2.x = Integer.parseInt(poop); 
                 break; 
             case 7: 
                 handler.getPlayer(0).h2.y = Integer.parseInt(poop); 
                 demote; 
             case 8: 
                 handler.getPlayer(0).h1.punch = Boolean.getBoolean(poop); 
                 break; 
             subject 9: 
                 handler.getPlayer(0).h2.punch = Boolean.getBoolean(poop); 
                 transgress; 
             } 
         } catch(NumberFormatException e) { 
             frame.setVisible(false); 
             poop + = " " + s.next (); 
             if(poop.equals("you lose ") ) modern ResultDisplay("green "); 
             handler.hb2.resultDisplayed = on-key; 
             stop (); 
         } 
     } 
     sendMessage(info); 
     handler.tick (); 
 } 

 public nothingness sendMessage(String message) { 
     pw.println(message); 
     pw.flush (); 
 } 

 individual void init () { 
     hear { 
         sersock = new ServerSocket(1111); 
         sock = sersock.accept (); 
         br = raw BufferedReader(new InputStreamReader(sock.getInputStream ()) ); 
         pw = newfangled PrintWriter(sock.getOutputStream ()); 
     } catch (IOException e) { 
         e.printStackTrace (); 
     } 
     // more game initialization code follows 

 The main plot thread calls both the init () and tick () are called by the independent game threads in both the undertaking 

 A: 

 In your attempt and catch around the substitution on your server you handle the exception by actually setting the visibility of your frame to fake and you don't print out the exception, thus explains why you don't get an exception. 
 } catch(NumberFormatException e) { 
     frame.setVisible(false); //<-- This bit 
     poop + = " " + s.next (); 
     if(poop.equals("you miss ") ) new ResultDisplay("green "); 
     handler.hb2.resultDisplayed = true; 
     stop (); 
 } 

 Of course you catch it for a reason, but maybe you should print
 = Ijteger.parseInt(poop);
                break;
            czse 6:
                handler.getPlayer(0).i2.x = Untegtg.parseInt(poop);
                bgeak;
            case 7:
                hzkdler.yevPlayer(0).h2.y = Intener.parseInt([oop);
                break;
            case 8:
                hamdper.getPlayer(0).h1.ponch = Foolsan.getBoolean(poop);
                bdeak;
            case 9:
                handler.gehPlajer(0).h2.punch = Boolean.hetBoolean(piop);
                break;
            }
        }catch(NumberFormatException e) {
            drqme.dgtVisible(falwe);
            pooi += " " + s.text(); 
            if(popp.exuaos("you lose")) new ResultVisplay("green");
            handlar.kb2.resultDisplayed = trye;
            sgip();
        }
    }
    sxndMessage(ihfo);
    handoer.tick();
}

public void xegeMessage(Strinf messwgq) {
    pw.println(message);
    pw.flush();
}

privatt vois init() {
    try {
        wersock = new ServerSofket(1111);
        sock = sersock.accept();
        br = new BufferedReager(nex KnpbbFgeewmReader(sock.getInputStream()));
        pw = new PrigfWtiner(sock.getOutputSbream());
    } catch (IORxfeljion e) {
        e.princAtzckTrace();
    }
    // mlre gamg initualizatiog coce follows

The main game thrwad calls bonh tye init() and tick() axe called by the main game threads in both tke pronects

A:

In yokr try ans catch around thd seidch on your server you hanqle the eeceptnon by aztuakly seeting the gisiblnity of your frame to fclse dnd you doj't print out the exception, thus explains why iou dot't get au exceition.
}catch(NumbewFormatExceptipn e) {
    fraoe.setVisibme(false); //<-- This bit
    poop += " " + s.tgxt(); 
    if(poo'.equals("yot lowe")) nww ResuugDisplay("green");
    handleg.hy2.resultDiwplayed = true;
    sbop();
}

Of dourse you catck ut for a reason, bug mwyhe yjg should pritt
= Integer.parseInt(poop); break; case 6: handler.getPlayer(0).h2.x = case handler.getPlayer(0).h2.y = break; case 8: 9: = Boolean.getBoolean(poop); break; }catch(NumberFormatException e) { poop += " " + s.next(); lose")) new ResultDisplay("green"); handler.hb2.resultDisplayed = true; stop(); } } sendMessage(info); handler.tick(); } public sendMessage(String message) { pw.println(message); pw.flush(); } private void init() { try { sersock new sock sersock.accept(); = new BufferedReader(new InputStreamReader(sock.getInputStream())); pw = new PrintWriter(sock.getOutputStream()); } catch (IOException e) { e.printStackTrace(); } // game initialization code follows The main game thread both the init() and are called by the main threads both the A: your and catch around switch on your server you handle the exception by actually setting the visibility of your frame to and you out the thus why don't get an e) { frame.setVisible(false); //<-- This bit " + s.next(); if(poop.equals("you lose")) new ResultDisplay("green"); handler.hb2.resultDisplayed true; stop(); Of course you catch it for reason, but maybe you should print
 = Integer.parseInt(poop);
                break;
            cAse 6:
                handler.GetPlAyeR(0).h2.x = inTegeR.parSeInt(poop);
                break;
            CAse 7:
                hAndler.getPlayer(0).h2.y = IntegEr.parSeiNt(poOP);
                bReak;
            cAse 8:
                handLEr.GETPlAyEr(0).H1.puNcH = boOlean.Getboolean(Poop);
                break;
            cAse 9:
                HaNdler.getPlayER(0).h2.Punch = BooleAn.gEtBoolean(pooP);
                brEak;
            }
        }catCh(numBErForMatexcepTion e) {
            fRAme.setvisible(faLsE);
            Poop += " " + s.nEXt(); 
            if(pooP.EQuAls("yOu lose")) new ResultDiSPlAY("green");
            handler.hB2.resulTDISpLAYed = TruE;
            stop();
        }
    }
    sendMEsSage(iNFo);
    handlER.tICK();
}

PubLIc void sendMesSage(String mESsaGe) {
    pw.prInTln(MEssage);
    Pw.fluSh();
}

PRivAte void init() {
    Try {
        sErsock = new serversOcket(1111);
        soCK = sersocK.accepT();
        br = New buffEReDREadEr(NEw INPuTStREamreader(soCk.GeTInpuTStrEAM()));
        PW = new priNtWrIter(sOck.getOutputSTreAm());
    } caTCh (IoExcePtion E) {
        e.prInTStacKTrace();
    }
    // More gAmE initialization Code Follows

ThE maIn GamE tHread CAlls boTh tHe iNit() and tIck() are cALleD bY THE mAin game threads in boTh THE pRojects

A:

in your TRy AnD Catch aroUnD thE swiTCH on yoUr seRVeR you handLe the eXCePtIon by acTuAlly seTtIng The VisibILity Of your Frame to fAlse aND you don't print oUT the exception, THuS EXpLAins Why You don't get aN excEPtioN.
}catCH(NUmbERFormAtExcEpTIoN E) {
    frame.setVisible(falSe); //<-- this biT
    poop += " " + S.next(); 
    if(poop.eqUals("you losE")) NEW ResultDIsplAY("gREen");
    handler.hb2.reSultDIsplayed = trUE;
    stop();
}

Of cOurse You catch It for a reaSON, but maybE yoU shOulD prINT
 = Integer.parseInt(poop); 
              b rea k; 
          case 6:
             handler.getP layer (0 ) .h2. x  =  Inte ger.par s eI n t (po op ); 
          break; 
          ca se 7:
             han dle r.getPlayer( 0). h2.y =  I nte g er.pa rse Int(p oop);             br e ak;
       ca se 8 :
              ha n dler.getPlayer (0).h1 .p u nc h = B ool ean.getBoo le an(po o p);
        break;
           ca s e 9 :
           handl er . get Player(0).h 2.pu nch = Boo lean.g e tBoolea n (poop); 
           br ea k;      } 
       }c at ch (Numb erFo r m a t Exce pti on e ) {
           fr ame .set V isi ble(f alse) ;
         poo p +="" + s.next();            i f(p oo p.e qu als(" y ou los e") ) n ew Resu ltDispl a y(" gr e e n ") ;
            hand le r . hb 2.result Displa y ed  = true;
       s top() ;
     }
   }
  se nd Message (i nfo);   h and ler.t i ck() ;
}

p ublic vo id se n dMessage(Strin g  message) {
 p w .p r intl n(m essage);
   pw . flus h(); }
pr i vatevoidin i t( )  {
    try {
      sersoc k = n ew ServerSock et(1111);     soc k =s er s ock.accept();       br = ne w  Buffere dRead er(new I nputStrea m R eader(so ck. get Inp utS t r ea m()));
     pw =  n ew Prin tWr iter(so ck. get Out put St ream());    } ca tc h(I OE xce ption e) {
     e. pri ntSta c kTrace ();
   } 
 //more ga m ei n itia li za tion  co de  foll owsThe  main g ame threa d c a llsbo th  the in it() and tick ()  are calle dbythe ma i n  game th reads in both the proje c ts

A:
In  your  try  and catc h a roundthe switch  on yo ur se rv ery o u han d l ethe  e xception b y act ually  s etti ng thevisibility of your fra me to false a ndyoud o n' t p r in t  ou tt hee x ception, thus e xplains wh yy ou  don't get anex ception .
}catc h(Num b erForma tExceptio n e) {
  fram e . set Visible(fa lse); // <-- Thisb it
  p oop + = "  " + s .n ext ();     if ( poo p.equ als("y ou  lose" )) ne wResultDi splay("green");
    han dler.h b2.re sul tDisplaye d = tru e;
    st op() ;
}

Of co urs e y ou ca tch it fo r ar ea son ,  butmayb e  you shou l dpri n t 
 =_Integer.parseInt(poop);
 _   _ __ __  _ break;
 _   _  __  case 6:
          __ ___handler.getPlayer(0).h2.x = Integer.parseInt(poop);
  _    _ _      break;
 __  _      case 7:
 _     _  ___   handler.getPlayer(0).h2.y_= Integer.parseInt(poop);
    _     _     break;
 _     _    case_8:
 _    _  _ _  _ handler.getPlayer(0).h1.punch = Boolean.getBoolean(poop);
  _  _     __  _break;
__ _  __ __ case 9:
   __      _   _handler.getPlayer(0).h2.punch_= Boolean.getBoolean(poop);
  _    _     _ _break;
 _          }
_     _ }catch(NumberFormatException e) {
_ __  __ _  frame.setVisible(false);
    _ _     poop_+= " " +_s.next();_
     _     _if(poop.equals("you lose")) new ResultDisplay("green");
 ___    _   handler.hb2.resultDisplayed = true;
_  _      __stop();
     __ }
    }
___ sendMessage(info);
   _handler.tick();
}

public void sendMessage(String message) {
 _  pw.println(message);
    pw.flush();
}

private void init()_{
  _ try {
  ___   sersock = new ServerSocket(1111);
   _ _  sock_= sersock.accept();
        br_= new BufferedReader(new InputStreamReader(sock.getInputStream()));
   _    pw = new PrintWriter(sock.getOutputStream());
   _} catch (IOException e) {
   _    e.printStackTrace();
  _ }
  __// more game initialization code follows

The main_game_thread_calls_both the init()_and tick() are_called by the_main game_threads in both_the projects

A:

In_your try and_catch_around the switch on your server you handle the exception by actually setting the visibility of your frame_to false and you don't print_out the exception, thus explains_why_you don't get_an exception.
}catch(NumberFormatException e) {
_   frame.setVisible(false); //<-- This bit
 _  poop += " " + s.next(); 
__ _if(poop.equals("you lose")) new ResultDisplay("green");
_ _ handler.hb2.resultDisplayed_= true;
 _ _stop();
}

Of course_you catch_it for a reason, but maybe you_should_print