• Post Reply Bookmark Topic Watch Topic
  • New Topic

What's up all  RSS feed

 
Alec Ignatious
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I'm a brand new Java user. Actually, that's an understatement. I have no clue at all about Java, though I know a tiny but of C++ .
Let me start this off: There is an AP Computer Science class taught at my high school. It was pretty good, and the AP credit was being supported through the state university. The language was C++, and it was relatively nice and simple to learn/run. All good.
Unfortunately, at our school, nothing is ever that simple. A day after our teacher orders our textbooks, the university announces it is changing its curriculum for the AP credit from C++ to Java. Which sounds like it they shouldn't be allowed to do, but they did anyway.
So now, my teacher has eleven hundred dollars worth of useless material, and has to explain to the school board why he has it. But that's not the worst of it. He has absolutely no clue whatsoever as to doing Java.
So, basically, it's up to me and my friends to learn and "teach" everyone, since he won't be doing a lot. So, as I've had to do before (for last year during Visual Basic), I've attached myself to a forum and will hopefully learn from the superior experts there (you guys)
Oh, and for the personal stuff...
I'm a 10th grader who's into computers (duh), more specifically, programming and casual gaming (I don't spend 6 hours per day online), basketball, and music in general. I've played the piano for 7 years, and the trumpet for 4. I like to write and read fantasy, and I'm a big John Williams fan. On the opposite end of the spectrum, 3 doors down, creed, and linkin park are my favs too.

What's up all?!
p.s. Ownage smileys
 
Joel McNary
Bartender
Posts: 1840
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alec/Almighty Jeef:
You've come to the right place to learn Java, make no bones about that! We do have one rule here at JavaRanch (well, two): "Be Nice" and out Naming Policy Please make sure that your display name conforms to this policy. (Obviously fictitious names such as "Almighty Jeef" are not permitted; we do prefer that you use your real name, which may or may not be "Alec Ignatious", but can't enforce that).
First of all, I would suggest not using NetBeans to start with. The best way to start with Java is to start with Command-line compiling. That way, you learn what is going on behind the scenes of the IDE. (This is good advice for any language, not just Java).
To start, download the JDK from sun and learn how to set up the environment for compiling Java (particularly the classpath). Then understand how java works -- the javac compiler, the java virtual machine, etc.
"Hello, World" is always the best first thing to try in any language. So here is one for Java:

This should go in a file called "HelloWorld.java" (Yes, capitalization does matter), and you would compile the class by issuing the following command:

Note that that produced a file called "HelloWorld.class"
Run that with the command

NOTE: Do not append the ".class"; that will not work.
The command prompt will do quite well for learning Java; as I say, you will get a better underatanding for the language than if an IDE hides some things from you.
[ November 20, 2003: Message edited by: Joel McNary ]
 
Jason Menard
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you haven't settled on a text yet, you might start by checking out Bruce Eckel's Thinking in Java (free electronic book, very good), and/or Head First Java, which might be particularly well suited to your situation. Good luck and we look forward to seeing you around the Ranch.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!