Potpouri Control Structures Arrays Graphics Boolean Expressions Types Methods Basics
How old am I? Can a while loop run zero times? How do you declare an array of floats? Can you draw to the screen in mousePressed? What does "=" mean? What type(s) can hold the number three? Suppose that the screen needs to be painted.  What function gets called? What is hardware?
When is the Final? How many times does the for loop run? What happens if you forget to 'new' an array? What is the command to change color? What is the symbol for 'or'? Can you declare more than one variable on the same line? What happens if paint() calls repaint()? How big is a mainframe?
Which browser can run Java, Netscape or I.E.? How many times does the while loop run? How do you set all of an array to twelve? How do you draw a number to the screen? What is the symbol for "not" Give me an example of a variable that should be of type 'boolean'? What method gets called when a key is pressed? What part of the computer holds the program being run?
What are the acceptable excuses for missing the final? Transfer a point
(sadness)
What happens if
int a[3];
a = new int [3];
a[3] = 999;
What is the last argument to drawString? Write me an expression that says true if x is 17 or 12. What does 'void' mean? How do you find out what key was pressed? What happens to your Lydia files if you pull the little blue wire?
Transfer a point
(sadness)
if A is twelve, what gets drawn on the screen? How many floats in
int a[3][2][4]?
What is the command to draw a circle? What does 
3 < x < 5
mean?
Name one  functions of type 'boolean'? Look at the code below.  What happens? What is this sound?  doing-doing-doing
Is my vcr Y2K compliant? Write me a loop that counts from 9 ... 1 by twos. Suppose a float takes 4 bytes.  How much does 
float f[4][4]
take?
What is the command to draw a parallelorgram? When is this true?
(x > 4) & ( x < 0)
What is 
float f=3/4+2-1*0
?
What is the first peice of code (which method)to be run in your program? What does JAVA stand for?

                                                                                            a = 12;
for(i = 0; i <= 9; i++)              i = 7;                                      if (a < 5) {
{                                            while (i < 15)                                 g.drawString("Mars", 10, 10);
      i = 0;                               {                                             }
}                                                     i += 2;                            else if ((a < 15) && (a < 10)){
                                              }                                                   g.drawString("Venus", 10, 10);
                                                                                            }
                                                                                            else if (a != 12) {
                                                                                                   g.drawString("Jupiter", 10, 10);
                                                                                             }

class Mercury extends EventPanel {
    foo() {
        a = new Moon("Moon", 12, 12);
}
class Moon
        int x, y;
        String Name;
        Moon(int newx, int newy, String newName) {
              x = newx, y = newY; Name = newName;
        }
}