So lets say I'm moving from Alice to Java, but I am home schooled so I am teaching myself. What would you recomend? Is there a way to download Java off the internet? Is it free? What is Java SE 7?
Your computer *should* already has Java installed, unless you are using some ye olde machine or whatever, haha
You might be using a Mac or something, and I believe that the newest OS X does not automatically update Java for you, so you will definitely want to download it.(look below for version stuff)
Java SE 7 is the newest version set to release, somewhere in I think(correct me if I am wrong) July? So right now the latest and greatest is Java SE 6.
Personally, I have always hated Java docs, but you may find them useful. :-/
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."-Albert Einstein
So lets say I'm moving from Alice to Java, but I am home schooled so I am teaching myself. What would you recomend? Is there a way to download Java off the internet? Is it free? What is Java SE 7?
You're going to want a good coding environment as well, so I recommend starting with Eclipse or Netbeans. After that, I would suggest getting this online textbook: Forgot the name, will fix tomorrow.
The biggest problem with Eclipse is that it is very slow and eats your RAM for breakfast, lunch, and dinner. Again your computer should already have Java. To check which version you are running go here :
Mr. Kidnapper uses Eclipse. I find it notably easier to use than Netbeans, but I downloaded both for compatibility. Though the main reason I use Eclipse is because my AP Computer Science class teaches with it.
If you want a good start, I will give you several goals:
Make a program that recites a poem. Do it all in one declaration, but retain lines.
Make a program that: Adds, subtracts, multiplies, divides, increments, decrements, and finds the remainder.
Make a program that separates an inputted number (Use Scanner) into the largest values of change, where the highest value of dollar is a $20 bill, and we will exclude $2 bills and 50 cent coins. For example, separate $5.31 into one five dollar bill, one quarter, one nickel, and one penny. Tip: Use Modulus.
Make a program that rolls two separate dice (Use Random). After that, add the values of the dice together and decide whether the end result is even or odd. Print the result. Do this three times (For loops can help.)
Make a program that calculates pi to the 9th decimal place using the Leibniz Formula for pi.
Make a program using JFrame that contains an image drawn using Graphics2D. Use methods such as QuadCurve2D, CubicCurve2D, Line, Rectangle, Ellipse2D, etc. In fact, why don't you draw a whole face (lol)? Enable anti-aliasing.
Make a program using JFrame that contains an image drawn using Graphics2D that is up to three GeneralPaths. Draw a suspension bridge or something.
Last edited by Mr Kidnapper; 01-10-2012 at 10:32 PM.