Use the class ClassObjectIODemo shown in Listing 10.10 of Chapter 10 to create a file of Species objects. The class Species is given in Chapter 10, Listing 10.9. Then write a program that reads the Species objects from the file you created into an instance of ArrayList, sorts these instances alphabetically by Species name, and then writes the sorted data to both the screen and a file. Read all file names from the user.
This Project can be done in many different ways. The solution shown here reads records from the user-specified input file into a list, then sorts the elements alphabetically by name using bubble sort. Note that Species has methods specifically for reading records from and writing records to a file, so that part of the program is especially easy to write.
See the code in SpeciesSortedByNameToFile.java. Uses Species.java, WriteSpeciesFile.java, and DisplaySpeciesFile.java.
You might also like to view...
If the probability that a normal object is classified as an anomaly is 0.01 and the probability that an anomalous object is classified as anomalous is 0.99, then what is the false alarm rate and detection rate if 99% of the objects are normal? (Use the definitions given below.)
Answer the following statements true (T) or false (F)
1. The DS can be a switch, a wired network, or a wireless network. 2. The pairwise master key is derived from the group key. 3. IEEE 802.11 defines seven services that need to be provided by the wireless LAN to achieve functionality equivalent to that which is inherent to wired LANs. 4. Handheld PDAs pose a security risk in terms of both eavesdropping and spoofing. 5. The actual method of key generation depends on the details of the authentication protocol used.
Give a brief account of the file formats supported by Rhino.
What will be an ideal response?
When exporting a report to an HTML Web page, click the ____ button to open the File Save dialog box.
A. Browse B. Save C. Create D. OK