Showing 0-0 of 0 results
# Exercise Title Features Description Platform Keywords
1 Throw IllegalArgumentException in SavingsAccount constructor Code Completion The SavingsAccount class given below is similar to that of Chapter 9. It should be illegal to construct savings accounts... CodeCheck Input and Output
2 Find longest word in file Code Completion Your task is to open a file, read all words in the file, and find the longest word in the... CodeCheck Input and Output
3 Processing exam scores Code Completion Your task is to read a file containing exam scores, and to write another file that contains the results of... CodeCheck Input and Output
4 Design IllegalNumberOfWheels Exception Code Completion The following Vehicle class throws a custom exception of type IllegalNumberOfWheels. Your task is to implement this exception class. The... CodeCheck Input and Output
5 Throw IllegalArgumentException in Vehicle constructor Code Completion The Vehicle class given below is used to represent various types of self-propelled vehicles. It should be illegal to construct... CodeCheck Input and Output
6 Processing names Code Completion Your task is to read an input file containing a name on each line, and then write an output file... CodeCheck Input and Output
7 Reversing the lines in a file Code Completion Your task is to read a file containing lines of text, and to write another file that contains these lines... CodeCheck Input and Output
8 Catching a NumberFormatException Code Completion In the following code, catch the NumberFormatException that is thrown when the argument of Integer.parseInt does not represent a number. CodeCheck Input and Output
9 Add throws clause to web reader Code Completion The checkURL method below checks whether a web site contains data. Checked exceptions can be thrown in the code. Your... CodeCheck Input and Output
10 Converting temperatures Code Completion Your task is to read an input file containing a month name followed by the average maximum temperature for that... CodeCheck Input and Output
11 Swap As and Os in RandomAccessFile Code Completion Your task is to swap all letters A with O and all letters a with o in a RandomAccessFile. Simply... CodeCheck Advanced Input and Output
12 HyperCaesar cipher Code Completion The HyperCaesar cipher is just like the Caesar cipher, except that the key for each step is the initial key... CodeCheck Advanced Input and Output
13 SuperCaesar Cipher Code Completion The SuperCaesar cipher is just like the Caesar cipher, except that the key value is incremented in each step. For... CodeCheck Advanced Input and Output
14 Swap adjacent characters in a RandomAccessFile Code Completion Your task is to swap adjacent letters in a RandomAccessFile. Simply read two bytes, back up by two bytes, and... CodeCheck Advanced Input and Output
15 Reading a serialized array of objects Code Completion Your task is to read a serialized array of objects. You are given a FileInputStream, and you need to read... CodeCheck Advanced Input and Output
16 Find vowels in string with recursive helper method Code Completion Complete the MyMethods class so that the static vowels method returns a string of the vowels of the string parameter.... CodeCheck Recursion
17 Receiving Input Integers Until a Certain Condition is Met (Case 1) Construct a program that receives an integer from the user, outputs that integer, and stops receiving integers when the user... PCEX while loop
18 Receiving Input Integers Until a Certain Condition is Met (Case 2) Construct a program that receives an integer from the user, outputs that integer, and stops receiving integers when the user... PCEX while loop
19 Receiving Input Integers Until a Certain Condition is Met (Case 3) Construct a program that receives an integer from the user, outputs that integer, and stops receiving integers when the user... PCEX while loop
20 Receiving Input Integers Until a Certain Condition is Met (Case 4) Construct a program that receives an integer from the user, outputs that integer, and stops receiving integers when the user... PCEX while loop
21 Receiving Input Integers Until a Certain Condition is Met Construct a program that receives an integer from the user, outputs that integer, and stops receiving integers when the user... PCEX while loop
22 Receiving Input Integers Until a Certain Condition is Met Construct a program that receives an integer from the user, outputs that integer, and stops receiving integers when the user... PCEX loops, while loop
23 Receiving Input Integers Until a Certain Condition is Met (Case 2) Construct a program that receives an integer from the user, outputs that integer, and stops receiving integers when the user... PCEX while loop
24 Receiving Input Integers Until a Certain Condition is Met (Case 3) Construct a program that receives an integer from the user, outputs that integer, and stops receiving integers when the user... PCEX while loop
25 Receiving Input Integers Until a Certain Condition is Met (Case 4) Construct a program that receives an integer from the user, outputs that integer, and stops receiving integers when the user... PCEX while loop
26 Receiving Input Integers Until a Certain Condition is Met (Case 2) Construct a program that receives an integer from the user, outputs that integer, and stops receiving integers when the user... PCEX while loop
27 Receiving Input Integers Until a Certain Condition is Met (Case 3) Construct a program that receives an integer from the user, outputs that integer, and stops receiving integers when the user... PCEX while loop
28 Receiving Input Integers Until a Certain Condition is Met (Case 4) Construct a program that receives an integer from the user, outputs that integer, and stops receiving integers when the user... PCEX while loop