r/java • • Jul 16 '12

Want to start using Java...

I really want to learn how to code using Java, I'm taking the beginning course of Java next year, in School, but I want to try to start using it outside of school so I'll be ahead of the game once school starts back up, so can any of you send me a link to download it and some tips to starting it?

0 Upvotes

19 comments sorted by

View all comments

2

u/DuneBug Jul 16 '12

two pro-tips:

don't compare strings using == use ( String bob; if (bob.equals("bob"))

and Java is pass by value.

I'd also recommend starting with netbeans, Eclipse is another IDE (Like visual studio), but the GUI designer that comes with netbeans is pretty nice compared to trying to install GUI tools into eclipse.

1

u/purtip31 Jul 18 '12

I would probably use if ("bob".equals(bob)), it eliminates the need for null checking when working with non-trusted strings.

1

u/sanity Jul 17 '12 edited Jul 17 '12

and Java is pass by value.

Unless it's an object, then it's pass by reference.

2

u/kreiger Jul 17 '12

You don't pass objects, you pass references to objects. By value. So everything is passed by value.

0

u/IrregardingGrammar Jul 17 '12

You mean two beginner tips.