import java.io.*; import java.util.*; public class filereader { private ArrayList ar = new ArrayList(); public void reader() throws IOException // fills ar with 15 Tool Objects {FileReader fr = new FileReader("toolsdata.txt"); BufferedReader br = new BufferedReader(fr); String tool,q,p; double price; int quantity; int ct = 0; for (int x=1; x <= 15; x++) { tool = br.readLine(); q = br.readLine(); p = br.readLine(); quantity = Integer.parseInt(q); price = Double.parseDouble(p); Tool t = new Tool(tool,quantity,price); ar.add(t); } } public void printCost(String n) { } public double getCost(String n) { } public void changePrice(String n,double p) // change price of item n { } // it will go up or down depending on whether p is positive or negative public String mostExpensive() // returns name of most expensive item { } public void printItemsWithLessThan(int n) // prints all items with less than n items in stock { } public void changeAllPrices(double rate) { } }