How exactly are you trying to run this code? It looks like you ended up with only building/compiling it instead of running it.
– PshemoDec 19 '16 at 13:47
Most probably duplicate of [how i can see the output console result in netbeans](http://stackoverflow.com/questions/23323170/how-i-can-see-the-output-console-result-in-netbeans).
– PshemoDec 19 '16 at 13:52
Question wasn't "what are you trying to do", but "how are you trying to run this code" because this step seems to be where problem is. Anyway did you visit question linked in my previous comment? Did you try running your code in a way described there?
– PshemoDec 19 '16 at 14:40