HW: Beef up your skills!
You decide what you aren't familiar with and practice:
2. terminal commands
3. writing a java program compiling and running.
Commands you should know and love:
cp mv mkdir rmdir
ls cd pwd rm
Commands you should learn to love:
emacs ssh less more grep
Cool Commands that won't be required:
| : (pipe) lets you run the output of one program into another program
wc : word count
sort : sorts things...
Very Basic Linux Tutorial for n00bs and forgetful people: https://www.digitalocean.com/community/articles/an-introduction-to-linux-basics
More detailed Linux/Unix tutorial:
-Java is statically-typed (variables must be declared before they can be used)
The primitive data types: (you need the ones underlined)
int (32 bit, values from -2^31 to +2^31-1)
boolean (size not defined)
char (16 bits , 0 to 65,535)
Other Data Types:
A String is not a primitive type. Strings are special because they are objects, and we will learn about them more later.
Literal - a fixed value written in the source code.
1.23e2 (doubles can be written in engineering notation!)
Identifier - the name given to a variable/function.
May not start with a digit, and may contain letters, digits, _ , and $ . (Don't use dollar signs, and don't use underscores except when discussed in class)
num$dollars (terrible name)
Variables : They store values, and you can change them by re-assigning after they are assigned. You cannot use a variable before it is assigned.
<name> = <expression>;
x = 3;
z = 2*3.14159+1;
declare + assign:
<type> <name> = <expression>;
char c = 'f';
String s = "whoa!";
Reassignment - can have the original variable in the expression:
x = x + 1;
fish = fish + cat; //assumes fish and cat have values and are compatible with addition.