I am unable to compile this code. I am trying to sort by author with the code. The error message says it is looking for a symbol for inventorySort which is the class that I created to do the sort. Any help would be appreciated.
Thanks in advance
//The main driver class for the Bookstore Inventory
import java.util.Scanner;
import java.io.*;
public class BookInventory
{
public static void main (
String[] args) throws IOException
{
String inventory;
Scanner fileScan, InventoryScan;
Book[] bookData = new Book[500];
fileScan = new Scanner (new File ("inventory.txt"));
while (fileScan.hasNext())
{
inventory = fileScan.nextLine();
System.out.println(inventory);
InventoryScan = new Scanner (inventory);
InventoryScan.useDelimiter("/");
inventorySort.selectionSort(inventory);
System.out.println(inventory);
}
}
}