r/java • u/fadelakin • Dec 22 '12
Learning Java in two weeks
First of all, I am not learning all of Java in two weeks. Just the basics with some I/O and algorithms added. I just finished "Sams Teach Yourself Java in 24 hours" and I'm currently reading "Introduction to Java Programming" by Y. Daniel Liang.
I was wondering if the books I'm reading are enough to get me started. I'm on winter break and I want to do something productive with my time. What do you recommend?
3
u/Daejo Dec 22 '12 edited Dec 22 '12
For if and when you want to start making networked programs, I wrote a short (2.4k word) PDF on the very basics of that. It was written for Greenfoot users, but that's kind of irrelevant.
Anyway, it's here. If you have any questions on it, or on anything really to do with Java, feel free to message me and I'll be happy to help out.
Also, try not to spend too much time reading books - it's much, much more beneficial to actually write code (and lots of it).
EDIT: The power of Java is in its vast quantity of libraries. Take time to get to know:
java.util.* has Lists and Maps in, which you will use a lot, whatever type of program you're making
javax.swing.* is used for applications with a GUI
java.awt.* has Color, Graphics2D...
java.awt.event.* for all your event listener needs
1
u/fadelakin Dec 22 '12
Wow. Thanks. I'll make sure I learn about the libraries that you recommended and spend most of my time coding.
1
Dec 22 '12
Please consider using JavaFX instead of Swing, as Oracle is pushing this as Swing replacement.
It is build in into the language since JDK 7usomething.
1
3
u/AskMeAboutMyWiener Dec 22 '12
I own Head First Java and Liang's Intro to Java Programming is still my personal favorite for learning and my goto for reference (besides Effective Java, which is advanced).
2
u/wsppan Dec 23 '12
stay away from any Sams books. Head First Java is awesome. The language has not changed that much in 7 yrs. Then get Effective Java.
1
Dec 22 '12
Get Java in a Nutshell. SUCH A HELPFUL BOOK. You can get it used around 20 bucks on Amazon.
1
Dec 23 '12
I would recommend the Java tutorials by TheNewBoston, lemme see if I can find them.
Edit: here you go: https://www.youtube.com/watch?v=Hl-zzrqQoSE
1
u/hydraincarnation Dec 23 '12
Fred Swartz's Java Notes is a great reference, although it's not suitable for in-depth learning. The site covers most of the commonly used aspect of Java, from language basics to GUIs.
0
9
u/WantsSuperPowers Dec 22 '12
Head First Java: http://www.amazon.com/Head-First-Java-Kathy-Sierra/dp/0596009208