Question: Programming CycleFileInput - Write in Java with comments Revisit the Cycle class in Unit 3. Modify your application such that the properties will be read
Programming CycleFileInput - Write in Java with comments
Revisit the Cycle class in Unit 3. Modify your application such that the properties will be read from a text file called CycleIn.txt.
Directions
Examine your application for the class called Cycle.
Add an appropriate throws statement in the main method.
Create a reference to a File class with the appropriate name of a text file (Cycle.txt). Note: Cycle.txt was created in the previous assignment, CycleFileOutput.
In your code, check that the text file does exist.
Input the values from the file to memory.
Close the file.
Grading Rubric
| Task | Points |
| Throws clause added in main method | 1 |
| Create a reference to the File class and text file | 1 |
| Check whether the text file exists | 1 |
| Read the properties from the text file and output to screen | 1 |
| Close the text file | 1 |
| Proper documentation | 1 |
| Program works effectively | 1 |
| Total | 7 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
