Want to learn java, any suggestions?

kuljc

Golden Member
Apr 7, 2004
1,845
0
0
Hello, I've been programming for a while (mainly in c++) but I recently wanted to program in java.... I was wondering the best way of going around and doing this.

Any book suggestions, compiler suggestions (combo's).

There's also .net and stuff is that better than anything else?

I am interested in making simple programs of course, but eventually start putting these online. Thanks all.


******

Added question:

Thanks for helping me out.. I'm at java.sun.com where kamper told me to go, I'm attempting to download the sdk, but which one should I download?

actually I think I answered my own question.

******EDIT
using jcreator... but 1 more question...

how to get rid of auto insertion of } and )


******* EDIT
I actually will start using eclipse...

so now i need a really good book to learn this stuff... please read the last post i wrote. THANKS.
 

AFB

Lifer
Jan 10, 2004
10,718
3
0
Compiler: JCreator LE (Free)
Books :
(No programing experience) Learning Java
(Past experience) Thinking in Java * I hear this one is good
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Well http://java.sun.com is the place to start. You'll find the sdk there which consists of the compiler, runtime environment and a few other goodies.

The best reference is the api docs but you get started you might want to try here or here. Good luck and keep coming back with questions...

edit: fixed links...
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Originally posted by: amdfanboy
Compiler: JCreator LE (Free)
Books :
(No programing experience) Learning Java
(Past experience) Thinking in Java * I hear this one is good

I thought you still had to have the sdk installed for JCreator? When I did it it found my current install and that was the only option I had to use.
 

AFB

Lifer
Jan 10, 2004
10,718
3
0
Originally posted by: kamper
Originally posted by: amdfanboy
Compiler: JCreator LE (Free)
Books :
(No programing experience) Learning Java
(Past experience) Thinking in Java * I hear this one is good

I thought you still had to have the sdk installed for JCreator? When I did it it found my current install and that was the only option I had to use.

Yes, to my knowledge, you have to have a version of he SDK installed. It will then allow you to change the comiler it uses after intallation.
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Cool, then I second the vote for JCreator. Seems like a nice simple ide to get started in.
 

kuljc

Golden Member
Apr 7, 2004
1,845
0
0
so since people like jcreator I started using it... the only thing that TOTALLY annoys me is how it automatically inserts ")" or "}". Does anyone know how to disable this?
 

AFB

Lifer
Jan 10, 2004
10,718
3
0
Configure - > Options - > Java (Right side) - > Under Compatiblity deselect "Auto insert brackets" - > Apply


Why would you want to do this? Most IDE's have this and you should really do it when you code without this.
 

kuljc

Golden Member
Apr 7, 2004
1,845
0
0
nice thanks.. gosh I must be blind cause I couldn't find it when I was looking for it...


why do I not want them... well cause they're VERY annoying when you're not used to them. Especially when you've been programming for over 3 years w/o the auto brackets and probablly won't have them, it just makes things easier for me.
 

AFB

Lifer
Jan 10, 2004
10,718
3
0
Originally posted by: kuljc
nice thanks.. gosh I must be blind cause I couldn't find it when I was looking for it...


why do I not want them... well cause they're VERY annoying when you're not used to them. Especially when you've been programming for over 3 years w/o the auto brackets and probablly won't have them, it just makes things easier for me.

It's a pretty weird request, probably why it was so hidden.

What IDE did you us for C++ ?
 

ttown

Platinum Member
Oct 27, 2003
2,412
0
0
for an IDE, I'd recommend Eclipse rather than JCreator.

It's quite similar, except that Eclipse is more widely used -- and you'll see articles featuring it in publications like Dr.Dobbs and other Java programming mags. I doubt you'd ever see one featuring JCreator.

Most importantly, you'd more likely see a job-opening description mentioning Eclipse than you would JCreator.
 

ttown

Platinum Member
Oct 27, 2003
2,412
0
0
Originally posted by: kamper
wierdest thing I've ever heard anyone complain about :p
lol.... I guess that without this feature, a beginner will more quickly learn the problems with mis-matched end brackets.
The down side: Beginner writing a program that compiles but doesn't do what's expected == disappointment and lost interest.... :(
The bright side: More experience debugging == better programmer.... :)
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Originally posted by: ttown
for an IDE, I'd recommend Eclipse rather than JCreator.

It's quite similar, except that Eclipse is more widely used -- and you'll see articles featuring it in publications like Dr.Dobbs and other Java programming mags. I doubt you'd ever see one featuring JCreator.

Most importantly, you'd more likely see a job-opening description mentioning Eclipse than you would JCreator.

I think that eclipse is far more powerful, complicated, and resource intensive (I've only had minimal experience with JCreator though). JCreator was suggested because he's just starting.

Edit: just starting java that is. He can use eclipse if he wants. That's actually what I'd encourage if he's up for it.
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Originally posted by: ttown
Originally posted by: kamper
wierdest thing I've ever heard anyone complain about :p
lol.... I guess that without this feature, a beginner will more quickly learn the problems with mis-matched end brackets.
The down side: Beginner writing a program that compiles but doesn't do what's expected == disappointment and lost interest.... :(
The bright side: More experience debugging == better programmer.... :)

He's not a beginner. He's been working in C++ so it's safe to assume he's comfortable with braces.
 

Chebago

Senior member
Apr 10, 2004
575
0
0
marcyes.com
wow...all these fancy programs...I program in kwrite and vi...but I here eclipse is really good, all my buddies like it atleast, but I installed it in windows and wasn't that impressed, I guess I just like doing everything the old fashioned way or something. If you're a big time C++ programmer I think the java api's are the only resource you will need, it is enough similar to c++ and if you only want to write simple programs then between the java api's and google, you're good to go.

If you really want to impress the girls though, you can program to sun standards...then atleast you can put on your resume that you know haw to code to java sun standards.
 

ttown

Platinum Member
Oct 27, 2003
2,412
0
0
Originally posted by: Chebago
wow...all these fancy programs...I program in kwrite and vi...but I here eclipse is really good, all my buddies like it atleast, but I installed it in windows and wasn't that impressed, I guess I just like doing everything the old fashioned way or something. If you're a big time C++ programmer I think the java api's are the only resource you will need, it is enough similar to c++ and if you only want to write simple programs then between the java api's and google, you're good to go.

If you really want to impress the girls though, you can program to sun standards...then atleast you can put on your resume that you know haw to code to java sun standards.
I'm also an 'old school' programmer -- and like vi. And I also wasn't impressed with Eclipse at first.
After minor tweaking, though, I got Eclipse to show me just what I want, with everything else taking as little screen space as possible. (I'm also forcing myself into using an IDE, cuz I'm unemployed and want to be able to say that I have experience with them)
The best thing of all, though: Eclipse has a vi plug-in. (A couple, actually... there's a free version v0.2.3 and a pay version v1 and up -- the free version has enough of the basics to be worth while)

Weird how it's almost 2005 and vi is still the best editor ever. Everything else is just fluff.
(oh no... don't start flaming with things like "but with vi, i have to know how to type... and with _<lame editor of choice>_ all i have to do is _<such-n-such with the mouse>_ and click a button....")
 

kuljc

Golden Member
Apr 7, 2004
1,845
0
0
thanks all... after I purchase a book, I'll probablly start using eclipse....


YOU GUYS HAVE BEEN A HUGE HELP.. THANKS FOR THE FEEDBACK... i


f anyone else knows a book. so I can actually learn how to program and what is going on. (online tutorials help, but usually lacking a lot in certain sections)
 

AFB

Lifer
Jan 10, 2004
10,718
3
0
Originally posted by: kuljc
thanks all... after I purchase a book, I'll probablly start using eclipse....


YOU GUYS HAVE BEEN A HUGE HELP.. THANKS FOR THE FEEDBACK... i


f anyone else knows a book. so I can actually learn how to program and what is going on. (online tutorials help, but usually lacking a lot in certain sections)

Eclipse is too slow for me, but a goog amount of people like it. Use what you find helps you the most.

Like I said, this is a great book for learning Java. It is like a classroom style Q&amp;A and the questions they ask are VERY good.
http://www.amazon.com/exec/obi...76783-6407013?v=glance
 

kuljc

Golden Member
Apr 7, 2004
1,845
0
0
Originally posted by: amdfanboy
Originally posted by: kuljc
thanks all... after I purchase a book, I'll probablly start using eclipse....


YOU GUYS HAVE BEEN A HUGE HELP.. THANKS FOR THE FEEDBACK... i


f anyone else knows a book. so I can actually learn how to program and what is going on. (online tutorials help, but usually lacking a lot in certain sections)

Eclipse is too slow for me, but a goog amount of people like it. Use what you find helps you the most.

Like I said, this is a great book for learning Java. It is like a classroom style Q&amp;A and the questions they ask are VERY good.
http://www.amazon.com/exec/obi...76783-6407013?v=glance

yeah I was actually gonna get that one... but reading the reviews suggests it's fairly simple.. so i might get through it pretty quickly... just wanted to know a few more.. the other one up there is interesting to me, especially if i put these two together seems to be a good combo.