Question: Write three JAVA METHODS. Do not use any buffered reader imports, scanners and IO only. The first method will read in a file containing multiple

Write three JAVA METHODS. Do not use any buffered reader imports, scanners and IO only. The first method will read in a file containing multiple lines passed from another method. Each line will contain the name of a product and the following line will contain a number signifying the qty of that product. The method will then create a file with all product names on one line seperated by commas, and a second line with QTYs seperated by commas (in same order) The second method will perform the same operation as the first method, but before saving the file will check if a product is listed more than once and add them together. The third method will read in a file containing multiple lines passed from another method. Each line will contain name of racer, with a following line containing the number of points they earned. Save details to a new file with all racer names on one line, and all points on the next. The second line should display the points sorted by highest to lowest. USE THESE TO START. DO NO CHANGE HEADERS. ADDING THESE TO PROJECT THAT USES MAIN AS CONTRUCTOR.

public void Problem1(File file) {

}

public void Problem2(File file) {

}

public void Problem3(File file) {

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!