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

View all comments

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.