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
Nperic 0 Newbie Poster
Recommended Answers
Jump to PostThis 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
All 3 Replies
ksaxena 0 Light Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
Nperic 0 Newbie Poster
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.