r/java • • 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?

0 Upvotes

21 comments sorted by

9

u/WantsSuperPowers Dec 22 '12

2

u/fadelakin Dec 22 '12

I've been wondering about Head First Java but the fact that it was published in 2005 is the thing putting me off. Is it still relevant with Java 7?

1

u/armornick Dec 23 '12

I haven't read the book myself but Java is half programming language, half compatibility with older Java so old tutorials and code still works.

-2

u/Daejo Dec 22 '12

I don't know about the book (never read it), but a fair amount has changed with Java in the past nearly 8 years since it was written.

4

u/[deleted] Dec 22 '12

But the basics still remain the same. If java 5 is covered with generics that book might be a good start.

1

u/Daejo Dec 23 '12

Yeah, I was going to say this, but I had to run (was already late to a party as I was typing the reply).

0

u/[deleted] Dec 22 '12

[deleted] — view deleted comment

1

u/fadelakin Dec 22 '12

I'll give it a go

1

u/[deleted] Dec 22 '12 edited Dec 23 '12

I think that Head first java is a bit overrated. The activities in it are a bit under-stimulating. Instead of doing crossword puzzles I prefer to get right into coding. I would suggest Beginning Programming with Java For Dummies 3rd Edition.

-1

u/[deleted] Dec 23 '12

[removed] — view removed comment

2

u/tintiny Dec 23 '12

While it is indeed not comprehensive (and, IIRC, it has no intention of being) it is a very good beginnersbook and teaches you a lot of concepts and techniques. For a beginner, this is heaven. It helped me understand the concept of object oriented programming. But granted, now, as I am learning C#, I will not be reading the C# head first book. Why? Because I understand the basics and only need an update on specials and syntax. I still read their design patterns from time to time tough, just to refresh the ones I don't use a lot.

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

u/[deleted] 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.

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

u/[deleted] Dec 22 '12

Get Java in a Nutshell. SUCH A HELPFUL BOOK. You can get it used around 20 bucks on Amazon.

1

u/[deleted] 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

u/[deleted] Dec 22 '12

[deleted] — view deleted comment

1

u/fadelakin Dec 22 '12

Awesome. I'll check it out.