Basic HTML version of Foils prepared October 30 1999

Foil 3 Variables and Types

From Short Introduction to Kids on Basic Programming Concepts in Java Sonia Kovalesky festival workshop (High School Girls) -- October 23 1999. by Nancy McCracken


1 A variable is a name that you give to a place to store a value in memory. When you declare a variable name, you say what type the values will be.
2 Declare 3 variables of type integer: There are many other types:
3
4 int x;
5 int y;
6 int size;
7 Or all at once for variables
8 of the same type:
9 int x, y, size;
10 String s;
11 Font f;
12 Color c;

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sat Oct 30 1999