CS231 lecture notes, Fall 1998 Week 2, Monday Reading Standish Chapter 3.1 to 3.4 Java review, featuring all our friends from last semester. Kinds of variables: local, global, instance. Kinds of methods: class, object. Use of the keyword static. Constructors and all the stupid ways of keeping argument names from conflicting with instance variable names. Declaration, initialization, both. Array types. Object types. Parameter passing. primitives, arrays, Objects ------------- Lists continued. Building a list as in: // create an empty list List list = new List (); // create three new nodes, unlinked ListNode node1 = new ListNode (); node1.airport = "PWM"; ListNode node2 = new ListNode (); node2.airport = "ORD"; ListNode node3 = new ListNode (); node3.airport = "OAK"; // link up the nodes node1.next = node2; node2.next = node3; node3.next = null; list.head = node1; list.length = 3; Dumb way to do it, we'll see better version soon. Discuss Java IDEs