Kaj is right. Get a Java book, do the programming exercises, then try creating programs of your own, implementing different features at a time, from the easy ones to the hard ones. A book can't answer all of your questions =)
If you don't have a Java book, there are always programming exercises on the Internet =)
First learn the basics and the way of thinking. I've seen some threads on this forum like "I'm new to Java, I'm writing my first program, I want to write a chat client with sockets" by people who hardly know what a class is and what a method is... Get to know the basics of programming well enough to know what you are doing.
There's two ways of programming:
- the first is "guessing till you get there", which is bad.
- the second is knowing what you are doing, why you are doing it.
> There's two ways of programming:
> - the first is "guessing till you get there", which
> is bad.
yet sometimes unavoidable. But at least in that case you know you're swimming with sharks.
It's called experimentation.
> - the second is knowing what you are doing, why you
> are doing it.
Yup. Even when guestimating things, never forget that that's exactly what you're doing.
Experimentation is good, but unless you have the knowledge to back it up with theory it won't do you any good.