i. How to get started – first threshold (pop up
window)
1. Use stump methods
ii. You know everything you need to get started now
iii. Randomness – not as strict as previous
programs
1. Have fun with it
i. Structure:
1. Part 1 – Write a whole program
2. Part 2 - Using instantiable classes
3. Part 3 – Coding an instantiable class
4. Part 4 – Arrays and Arraylists
ii. Last spring’s exam was longer than intended
(in case you’re worried)
iii. How to prepare?
1. We won’t code sample/last spring in class –
you should do it yourself
2. Test your code in eclipse
i. Plan
ii. Do
iii. Test
i. Note about this – you can use this.method
i. Null string vs “” string (empty string)
i. Java doesn’t always require us to use it, but
we can
i. if you try to call .equals from null object,
runtime error (null pointer)
i. Why static?
Leftover from C languages…doesn’t really relate to Java
private static <type> <name> = ?;
i. <ClassName>.<VarName>=?
public static final <type> <NAME> = ?;
i. Defined in method, not static
i. public static <returnType>
<name>(<args>){}
ii. These are the methods we’ve mostly been
working with up until this point!
i. Example – Math.pow(a,b);