Search:

Type: Posts; User: Java girl

Search: Search took 0.08 seconds.

  1. Replies
    11
    Views
    804

    Re: Files and arrays

    yup, everytime I adjust something, another problem arises. Nevermind :)
  2. Replies
    11
    Views
    804

    Re: Files and arrays

    Exception in thread "main" java.lang.Error: Unresolved compilation problem:
    Duplicate local variable i

    at pastpapers.PatientExercise.main(PatientExercise.java:25)
    line 25:the for loop line
  3. Replies
    11
    Views
    804

    Re: Files and arrays

    import java.util.*;
    import java.io.*;

    public class PatientExercise {
    //patients exercise time
    public static void main (String[]args) throws IOException{
    Scanner in = new Scanner(new...
  4. Replies
    11
    Views
    804

    Re: Files and arrays

    still not getting it to wrk :/ i ended up placing the for loop in the while and it created more problems.
  5. Replies
    11
    Views
    804

    Re: Files and arrays

    Hi, i incremented the i by replacing the:
    patientTimeRecords[i]= in.nextDouble();
    TO
    patientTimeRecords[i]++;

    But, my output screen is blank
  6. Replies
    11
    Views
    804

    Files and arrays

    Practicing a lot of java and testing my codes until I become better at it.

    Am reading records from a txt file and storing it into an array


    import java.util.*;
    import java.io.*;

    public...
Results 1 to 6 of 6