• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

infinite loop

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi i'm trying to get this game code to work in my client and server program.After connection the server ask the client to play the game but when i enter a number in the client window, it gives me the IOexception and ask me to guess the number again and again till it blocks.
Can any one help me?


EDIT by mw: Added Code Tags.
[ October 19, 2007: Message edited by: marc weber ]
 
Sheriff
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please use Code Tags when posting code. Thanks!
 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I noted that you declared a BufferedReader for getting user input, but then you are using this

on the line you are trying to get the input from...

If the BufferedReader In is the input source then you will need to change your code to use it.

i.e.


[ October 20, 2007: Message edited by: Liam Tiarnach ]
[ October 20, 2007: Message edited by: Liam Tiarnach ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic