Monday, April 20, 2009

Animal class and zoo class!

Create a Zoo Class and an Animal Class

Make an array of 3 zoo objects. Add 3 animal objects to each ArrayList in the Zoo. Keep track of three things about each animal.

The zoo class will have a constructor that reads in an arraylist of 3 animals. You decide what you want to keep track of with the animals.
To add a new form:

Right click on your package and go to "Other".

Click on "Swing Gui Forms" and add a JFrame Form.

Then inside your button the code is: new NewJFrame().setVisible(true);

Palindromes

A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99.

Find the largest palindrome made from the product of two 3-digit numbers.

Sunday, April 19, 2009

Funniest comments...

People have encountered these comments in open source projects:

Really funny.

Wednesday, April 15, 2009

Using sites.google.com, make an Introduction to Java site

Make a colorful, simple and user-friendly site with the following information:

  1. Inheritance
  2. Interfaces
  3. ArrayList and Arrays
  4. Method overloading vs. overriding

Also attach code samples to your site. Send me the URL when it is finished. If you copy other people's words, give them credit by linking to them and quoting it.

Monday, April 13, 2009

Make "Hello World" using the Google App for Java

  1. Read the tutorial here.

Show me in class running on the localhost.

OR...

Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:
1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...
Find the sum of all the even-valued terms in the sequence which do not exceed four million.

Wednesday, April 8, 2009

Awesome!

The SCJP test

I'd like you to try out this online game about the Sun Certified Java Programmer (SCJP) exam.

Evaluate it on your blog and then find three other sites to help people study for the SCJP exam and review those as well (please include URLs too!).

Go to BetterProgrammer.com

http://www.betterprogrammer.com/

Take the test and let me know how you did and what you thought of the problems using Google Documents (add me as a viewer) or on your blog.

Mario with Java!

Download this and evaluate the Creature -> Koopa OO capabilities. What sort of relationship did the developer create?

Give a summary of the classes and program on your blog.

Tuesday, April 7, 2009

Final Project

For your final project I would like you to make a program using Java.

What you choose is up to you, however, it must not be a trivial program. To ensure it is not trivial, email me your specs before April 12, 2009. If there is any problem, I will email you back.

Final project is due April 26, 2009.
Final exam is April 27, 2009.

Here are your grades so far.

FizzBuzz...

Write a program that prints the numbers from 1 to 100. But for multiples of three print "Fizz" instead of the number and for the multiples of five print "Buzz". For numbers which are multiples of both three and five print "FizzBuzz".

Wednesday, April 1, 2009

What do you think of this post?

Do programmers need to be "mathematically inclined"?

Write a response on your blog.