Search:

Type: Posts; User: Sinensis

Search: Search took 0.11 seconds.

  1. Replies
    4
    Views
    1,985

    Re: Simple scanner problem

    "run:
    Exception in thread "main" java.lang.NullPointerException
    at project1.ClassDataArray.readStates(Main.java:65)
    at project1.Main.main(Main.java:119)
    Java Result: 1
    BUILD...
  2. Replies
    4
    Views
    1,985

    Re: Simple scanner problem

    i feel like i already have, this time i'll include all of what i have so far, here it is:


    import java.io.File;
    import java.io.FileNotFoundException;
    import java.util.Scanner;

    /**
    *
    *...
  3. Replies
    4
    Views
    1,985

    Simple scanner problem

    I'm using this method to read records from a file in my root project directory, storing them into an array of objects.

    example of a line of text:
    Texas Austin ...
Results 1 to 3 of 3