If loop statement
What condition do you wish you could test for?
What is boolean
Me vs. a devil I have two possible moves: A or B If I make move A, devil pays me $4 If I make move B, I pay devil $3. Which move should I make?
OBJECTS AND CONSTRUCTORS ======================== String s1; // Step 1: declare a String variable. s1 = new String(); // Step 2: assign it a value: a new empty string. String s2 = new String(); // Steps 1
We can store a list of ints as an array, but there are disadvantages to this representation. First, arrays have a fixed length that can’t be changed. If we want to add items to a list, but the array is full, we have to allocate a whole new array...
In Lab 3, you modified several methods in the SList class so that a "tail" reference could keep track of the end of the list, thereby speeding up the insertEnd() method.
=============== Not all variables are references to objects. Some variables are primitive types, which store values like "3", "7.2", "h", and "false". They are: byte: A 8-bit integer in the range -128...127. (One bit is the sign.)