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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started