I have been debugging. I have been using system.out.println to see what the file is reading and that is how i kow it is reading the entire file. However, it looks as if it is just reading line by...
Type: Posts; User: anonb
I have been debugging. I have been using system.out.println to see what the file is reading and that is how i kow it is reading the entire file. However, it looks as if it is just reading line by...
Also, when you mentioned:
Use a debugger or add some debug statements to your code such as read the file token into a String, and then print it out with a println statement immediately after...
public class arrayl {
public static void main(String args[] ) throws FileNotFoundException
{
System.out.println("Please enter title of book: ");
Scanner input = new...
I am trying to store a file into an ArrayList and then have user input from console search for an element in the Arraylist and return found or not. It keeps giving me -1.
import java.io.File;...