Dude, looking at your previous topics about CID and then this topic to learn java there's a few things I want to tell you if you're serious about programming, First of all theres the programming section, but google is your best friend anyway.
I don't care what language you want to use to do the job but as a starter you cant just dive into bot making, start smaller with the basics the 'boring' hello world stuff the input/output ****, variables, arrays, classes, and plenty more.
Now THEN when you have googled you will find plenty online tutorials, e-books, library books, and open source programs.
I don't mean this in a bad way but if you're serious about programming you should know how to find information like tutorials

.