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

Recommended Answers

All 3 Replies

Please paste the exceptions you are getting.

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

Thankyou for the help, i got that part working fine.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.