I am putting together strings such as:
spagetti
Spinich
cheese
etc down the list in a text doc, how can I assign each a specified variable that I can call from in eclipse ?
like calling spagetti as “1” or “1a”
I am new at java and would like to know
All I have right now is
{
import java.util.Scanner;
import java.io.File;
import java.io.FileNotFoundException;
public class FileAccess {
private static String fileName = "ingredients";
private static Scanner inputStream = null;
}
}