I have built a program which acts as a Number Guessing Game using HOPP. Everything compiles like it should but my UI isnt loading because of a series of Exceptions. I was wondering if there are any helpful tips. I have added the code as an attachment.
Thankyou, any help is appreciated. :D

10 Years
Discussion Span
Last Post by Nperic

This is error which I got from your code

Exception in thread "main" java.lang.NullPointerException
    at GameLogicClientHOPP.get(GameLogicClientHOPP.java:33)
    at LogicUI.run(LogicUI.java:18)
    at GuessingGame.main(GuessingGame.java:12)

Your get method has following return return in.readLine(); . readLine method of DataInputStream is deprecated and you should not use it, check here.
I have got no experience with Java and networks but I think you did not understand properly reading and writing from/to socket. This tutorial can be helpful, read here

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.