I suggest you to read The Java Tutorial, which is provided free by SunMicrosystems, This is the best one. I can explain you but there are manyfunctions in that, so a big problem for me.