1) Integer is never initialized.
1a) If you can't think up a more descriptive name for a variable than Integer, I suggest you give up programming right now.
2) Then you try to compare Integer to a couple of numbers. Since Integer isn't equal to something how can it be compared to anything?
3) You apparently don't know the syntax for an if statement
You knocked number 4) off the list. Congrats!
I suggest you write a simple program as an exercise. Your program should declare and assign a variable the value 3. The next line should be an if statement that checks if the variable is equal to 3. Then, only if the variable equals 3, do two things:
1) add 2 to the variable
2) write code to display the variable.
After you get that to run successfully, change the value of the variable to 2 on the first line(instead of 3). Run your program again. This time, there should be no output. Did your program work correctly?
Personally, I won't respond to this
thread again unless you post the code for the exercise I suggested.
[ October 28, 2006: Message edited by: sven studde ]