Basic HTML version of Foils prepared Feb 19 1999

Foil 6 Arithmetic

From Computing and Java Language Basics NPAC Java Academy February--April 99 -- Feb 13 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 Mon Jul 5 1999