| Java Review |
for (initialization ; (expression that evaluates to boolean ; increment) { ... }
while (expression that evaluates to boolean) { ... }
do { ... } while (expression that evaluates to boolean);
int intArray[] = new int[4]; // elements initially set to 0 CreditCard cards[] = new CreditCard[MAXCARDS]; // elements initially set to null
ClassName someObject = new ClassName(); ... someObject.someInstanceMethod( ... );
ClassName.classMethod( ... );
Question: Which one is "better"? Why?