Yes you can use NetBeans although that has nothing to do with the problem you are trying to solve. I would suggest you focus on honing your Java skills; this
] is a good place to start.
I just noticed that you were already given information on this question here
] yesterday. I suggest you take some notice of the links already provided in answer to this. If you have information to add then please edit your original question rather than creating a new one.