Not familiar with java but I'm familiar with C++ and C and I feel your pain . I was gonna cry, one time I wrote a program totally free-style. I finally got it to work and I was about to compile it so it would be operable as a .exe and it froze . I had to hold the power button and restart. It was the hardest thing ever to do lol.