Lately I have come to realize that I should know some of Java for programming ( I want to program in android). When I read all the tutorials and some free e-books, they either assume no programming experience or assume the reader to come from C/C++ background. Since I am used to python and MATLAB for a long time, the strong-typed C/C++ is clumsy for me to follow. Is there any tutorials/book some of you folks know that assumes reader to be a python programmer and guides him through Java showing the similarities and differences between the two languages?
I referred to following books and websites:
Introduction to programming using Java by David J. Eck , which is nice but assumes little/no programming experience and have to go through many pages to get the basic.
Java for Beginners by Ricardo Flask
This books moves to and fro without talking about user’s background and other things.
This being said, I would like the book to answer few things like this right away and take through programming in Java:
-Why a function can be implemented without adding it to class in Java which can be done in python?
-What are the scope of various variables, their definition and how are they different from python?
These are few things python programmer will look in my opinion, when they try to see to Java.
Please suggest any materials that will help learning Java for python programmers.
We used this book right after our introductory course to java at my university: Object Oriented Design & Patterns, , by Cay Horstmann. It offers a good introduction to java as well to patterns. I liked it, and from there we went to just use online reference.
Good reading. And might I suggest the IntelliJ Idea Community edition as IDE when you feel like you need one.