CS130 - 4/18/11
- Not exactly news
- Review of Java concepts
- Information stored in variables
- Varibles must be declared before use; the format is <type> <identifier>; int x; or String s;
- The value of a variable is changed with an assignment statement; i.e. x=100; or s="I am a String";
- Variables declared inside a method are local and only visible in the method; they are created when the
method starts executing and disappear when it ends -- variables declared outside of any method are global and are
visible everywhere; assuming they are in a Frame, they are created when the Frame is created and exist as long as
it does.
- A Button that counts
- A TextField that sums a series of numbers
- Computing the maximum of a series of numbers
- Determining the maximum number in a file of numbers (if there is time)