Arnow's Intro to Java
- IT LOOKS LIKE C, SORT OF, UP TO A POINT:
- Java program boilerplate
- Standard Output, Standard Error
- HelloWorld.java, javac, java, the nature of a .class file
- What's similar to C:
- primitive types and operations,
- control structures,
- invocation syntax,
- array referencing
- I analyzed System.out.println("ech") in terms of ObjectReference .
- Message
- Showed them access of command line args,
- talked about machine independent sizes of numeric types,
- talk about integers not being booleans, introduce boolean, introduced
char and Unicode,
- operators (assignment,
conditional, etc.) and control structures that are C equivalent,
- primitives vs objects (you can't tell a primitive value
to do anything but you can send a message to an object), references
vs values.
- Some examples with Strings, toUpperCase(), equals(), compareTo()
- Array declaration and instantiation.
- Briefly introduced Integer class, talked about how the designers
could have avoided primitives altogether.