If it's Java (in which case this is in the wrong forum) then I'd recommend O'Reilly's Head First Java. Excellent book, with a uniquely chatty style and lots of pictures and demos.
I'd recommend searching the web. You'll never find a better way to learn than to read other peoples code while having a reference document nearby. There are of course lots of tutorials and guides on the web too.