yup, everytime I adjust something, another problem arises. Nevermind :)
Type: Posts; User: Java girl
yup, everytime I adjust something, another problem arises. Nevermind :)
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
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...
still not getting it to wrk :/ i ended up placing the for loop in the while and it created more problems.
Hi, i incremented the i by replacing the:
patientTimeRecords[i]= in.nextDouble();
TO
patientTimeRecords[i]++;
But, my output screen is blank
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...