i. How to get started – first threshold (pop up
window)
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. How to prepare?
1. 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> = <value>;
public static
final <type> <NAME> = <value>;
i. Which would be defined in a method, and 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);
i. Note – we don’t use this to access
these.
ii. Why?
Because they are not on the object