Joe Bishara wrote:
Brandon Bushnell wrote:...my job isn't related to programming
I hope I don't scare you off but you mentioned that your job isn’t related to programming, so before you switch to programming, there are a few home truths that need to be spelt out.
Java has a wide variety of uses from web development to desktop software to mobile, however, like a marriage, programming is a lifetime commitment. In many professions, one needs to train regularly in order to stay relevant, however, this issue is especially amplified in programming. Just when you think you know enough, there’s a little bit more to learn.
The trick is to show your employer that you can learn and you are willing to keep learning.
Stevens Miller wrote:Now, as you are interested in real-world data, I am going to suggest you learn C. C is easy to learn and is popular with the Arduino community (that's a cheap, tiny computer that can easily be connected to external devices, like weather sensor, LEDs, games, and so on). The vendor provides a C compiler (albeit a slightly limited on) for free. Yes, there are similar products that run Java, but I personally think C is a little bit better fit for that sort of thing.
Stevens Miller wrote:Now, having said that to you, I also advise that you stand some distance away from me, as this is JavaRanch, and it is very likely that, in a few moments, my colleagues will begin to hurl heavy objects at me, and I don't want any innocent bystanders getting hurt.
Mike. J. Thompson wrote:
If you have a look at where you assign the value to msg, you can see it depends on the return of jsonObject.get("hexes"), which is looking for the item called "hexes" at the root of the JSON document. However "hexes" is not at the root of the document, it's under "resonses". I imagine you need to reference it with something like "responses.hexes".
Mike. J. Thompson wrote:Can you post the exact error you're getting, including the full stack trace. Without that I can only guess what the problem might be.
Exception in thread "main" java.lang.NullPointerException
Bear Bibeault wrote:Oh, and by the way, thank you for your service.
chris webster wrote:
That's normal. I first started learning about Java soon after it came out in 1996, then when I came back a couple of years later the language had doubled in size, and since then the libraries seem to double in size every year - it grows like bacteria... Don't try to learn it all, just pick some core areas where you feel you want a strong grounding, then pick up the other stuff as and when you need it. No point learning stuff that will be obsolete by the time you think you need it!
chris webster wrote:I would say yes, and it means you probably already know more than some Java programmers I've worked with!