What is the best way to learn Java?

Hello Everyone,

I have just begun learning Java by myself. I am a bit confused as to what is the best way of learning it. Should I read the book "The Complete Reference: Java 2 fifth edition" or Sun's online tutorial? I guess I should also make notes, and create as many programs as possible and execute them.

I have also downloaded and installed both Netbeans and jEdit but I read somewhere that a beginer should first learn and work in notepad, is that the correct way?

Lastly how much time (months?) will it take to learn it well? I have to make a project in few months for my Degree course and I am thinking about making it in Java.

What do you guys think I should proceed?

Thanks!

[723 byte] By [Solid.Snakea] at [2007-11-26 15:04:41]
# 1

Read, write code, repeat.

"The Complete Reference: Java 2 fifth edition" - never read it. I'd use the on-line tutorial.

"I have also downloaded and installed both Netbeans and jEdit but I read somewhere that a beginer should first learn and work in notepad, is that the correct way?"

I think you should pass on an IDE until you fully understand what CLASSPATH is and can compile and run a multi-class, packaged app on the command line successfully.

"Lastly how much time (months?) will it take to learn it well? I have to make a project in few months for my Degree course and I am thinking about making it in Java."

Define "well". I think you can learn the basic Java syntax in a few months, but designing well is another matter.

This article expresses it well:

http://norvig.com/21-days.html

%

duffymoa at 2007-7-8 8:54:25 > top of Java-index,Java Essentials,New To Java...
# 2
Navy, good morning! How are you doing today?First winter mix of the season is predicted here tomorrow. How will I manage, now that I've gotten so used to global warming and spring in January?%
duffymoa at 2007-7-8 8:54:25 > top of Java-index,Java Essentials,New To Java...
# 3

> I have to make a project in few months for my Degree course and I am thinking about making it in Java.

What course is that? What programming languages do you already know?

The instructor of a course that would let students code in absolutely any language they wanted to use must be crazy or a genius.

DrLaszloJamfa at 2007-7-8 8:54:25 > top of Java-index,Java Essentials,New To Java...
# 4

> Navy, good morning! How are you doing today?

>

> First winter mix of the season is predicted here

> tomorrow. How will I manage, now that I've gotten so

> used to global warming and spring in January?

>

You could send some of that global warming this way it's -31 C today before including the windchill.

Aknibbsa at 2007-7-8 8:54:25 > top of Java-index,Java Essentials,New To Java...
# 5

> > Navy, good morning! How are you doing today?

> >

> > First winter mix of the season is predicted here

> > tomorrow. How will I manage, now that I've gotten

> so

> > used to global warming and spring in January?

> >

> You could send some of that global warming this way

> it's -31 C today before including the windchill.

Where are you?

DrLaszloJamfa at 2007-7-8 8:54:25 > top of Java-index,Java Essentials,New To Java...
# 6

> > > Navy, good morning! How are you doing today?

> > >

> > > First winter mix of the season is predicted here

> > > tomorrow. How will I manage, now that I've

> gotten

> > so

> > > used to global warming and spring in January?

> > >

> > You could send some of that global warming this

> way

> > it's -31 C today before including the windchill.

>

> Where are you?

Canada

Aknibbsa at 2007-7-8 8:54:25 > top of Java-index,Java Essentials,New To Java...
# 7
> > Where are you?> > CanadaI met a Canadian when I was backpacking last year. Do you know Gordie?
DrLaszloJamfa at 2007-7-8 8:54:25 > top of Java-index,Java Essentials,New To Java...
# 8
> > > Where are you?> > > > Canada> > I met a Canadian when I was backpacking last year. Do> you know Gordie?Office Gordie ? Sorry to tell you this, but he's dead ;-P
Aknibbsa at 2007-7-8 8:54:25 > top of Java-index,Java Essentials,New To Java...
# 9
> > you know Gordie?> Office Gordie ? > Sorry to tell you this, but he's dead Just kidding. I am in Kelowna. You must be in the Prairies, eh?
DrLaszloJamfa at 2007-7-8 8:54:25 > top of Java-index,Java Essentials,New To Java...
# 10

> > > you know Gordie?

> > Office Gordie ?

> > Sorry to tell you this, but he's dead

>

> Just kidding. I am in Kelowna. You must be in the

> Prairies, eh?

I gathered as much, and figured you had seen the molson canadian jokes they had a couple years back.

Yes I am in the praries. Went skiing on the weekend in the states to get away from the -42C (with windchill) weather. It was a balmy -25C with windchill in the states.

Aknibbsa at 2007-7-8 8:54:25 > top of Java-index,Java Essentials,New To Java...