Search:

Type: Posts; User: javapenguin

Search: Search took 0.10 seconds.

  1. Replies
    3
    Views
    2,040

    Re: need help inputting values into an array

    Wait...I see a potential Null Pointer Exception!

    You never initialize the String variable line nor do you change it to anything.

    Try changing it to

    while ((br2.readLine()) != null) {
    ...
  2. Replies
    3
    Views
    2,040

    Re: need help inputting values into an array

    while ((line = br2.readLine()) != null)

    Normally in while and if statements, use two "=" in a row for equals.
Results 1 to 2 of 2