| CIT 591 Final Exam, Fall 2008 | Name ______________________________ |
main method.enum class for the days of the week. Use three-letter
abbreviations for the days.WordPlay): public static boolean isVowel(char ch) {
return "aeiouAEIOU".indexOf(ch) > 0;
}
isVowel method.isVowel method.static the correct thing to do? int[ ] variable named position.
Write a getter method for position.Book objects are "equal" if they have the same
Isbn, where Isbn is an instance variable of type String.
Write a correct and complete equals method
for Book objects, and indicate (with a @ annotation) that it
overrides the inherited equals method.Inner is an inner class of class Outer,
then objects of type
Inner can be used only within class Outer. static method may not be private.void cannot be JUnit tested.JPanel object does
not allocate any space.double parameter can only be
called with a float or double argument. this and super.enum constructors are automatically private.System.out.println calls
the object's
toString() method.s contains only digits. Write a single assignment
statement to convert this string to an integer and assign it to variable n. true if the
double variable x is greater than 100.0, and print false otherwise. x if
it is positive, and print the value of y otherwise. f o r | ( i n t | i | = | 0 ; | i | < = | 1 0 ; | i + + ) | s u m | + = | i ;
// and /*...*/) comments,
and what kind of information should you convey?rabbit holds an object of type Animal, which implements
Runnable. Write the code to start rabbit executing in a new Thread.