It's good to know that you are learning new language and you found it interesting. I would suggest you to buy a book or read online about the same before moving too much into the development.
learning Java for Beginners!
This will help you in understanding and learning more about Java. Simple things like what you are asking here will get automatically answered. :thumbsup: