Question: please Code this in Java language Q3. [20 marks: 10 for each method] Develop a class BackupRestore that has two static methods: public static int
![method] Develop a class BackupRestore that has two static methods: public static](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3b80885886_39266f3b80833670.jpg)
Q3. [20 marks: 10 for each method] Develop a class BackupRestore that has two static methods: public static int backup (String filename, double partsize) public static int restore (String filename, int numberofpieces) The backup method backs up huge files by splitting them into smaller pieces that may fit into storage devices with different capacities (e.g., 700mb for CD-Rs). The size of each piece is equal to partsize megabytes. The method creates the output files filename. 1 , filename. 2 , etc. and then returns an integer representing the number of files created. The restore methods does the opposite. It combines filename.1, filename.2, etc. into filename. The method returns an integer representing the total size of the file filename. In both methods, if an IOException occurs, display an error message and return - 1 . Use buffer classes to improve performance
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
