ICS 111 - September 23

You will need to know this for next week's labs, and for the rest of the class!  Please review at home and be sure that this makes sense to you.  Try making sample programs that use these, and email one of your TAs with questions if you have any.

 

Boolean variable with other variable types:

http://java.sun.com/docs/books/tutorial/java/nutsandbolts/variables.html

 

Relational and Conditional Operators:

http://java.sun.com/docs/books/tutorial/java/nutsandbolts/relational.html

 

If / Else statements:

http://java.sun.com/docs/books/tutorial/java/nutsandbolts/if.html

 

Class example:  You and a partner solve the following:

1.  Write pseudo-code to do the following:

2.  Write Java code to do what your pseudocode specifies above

3.  Turn in your answer before leaving class.