Basic HTML version of Foils prepared October 30 1999

Foil 5 Arithmetic

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 On the previous page, we had an example:
2 Note that we can use numbers like 8 and arithmetic operators +, - , * and / just the same as in math (except that numbers can't get too big)
3 Strings are sequences of characters in quotes:
4 Values of other types are created with methods.
5 int x, y;
6 x = 8;
7 y = 2 * x;
8 String s;
9 s = "This is a string."

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