Results 1 to 6 of 6

Thread: Care to suggest where I'm going wrong with this code?

  1. #1
    Join Date
    Apr 2007
    Location
    Munich, Germany
    Beans
    1,578
    Distro
    Ubuntu

    Care to suggest where I'm going wrong with this code?

    Okay, so I have a java program I'm working on, and I want to import the contents of a file into a custom linkedList. The code worked fine until I added a loop which had the code running through every file in the directory and its subdirectories (which should just be added to the linkedList). However, the code fails in a loop where it should actually go through fine, since it did so before.

    code:
    PHP Code:
    public static RecordsLinkedList ReadInFromFile() throws IOExceptionFileNotFoundException{
            
    //initialize variables required for reading in
            
    String[] fResult={""};
            
    String projectNameprojectIDdatedescriptionclient2;
            
    double ratetime;
            
    RecordsLinkedList returnValues=new RecordsLinkedList();
            
            
    //re-create the path to the file by making a File array of all files and subdirectories within the /Records folder
            
    String temp3=recurseInDirFrom(home+"/Records");
            
    String[] paths=temp3.split(",");
            
    File[] path=new File[paths.length];
            for(
    int z=0z<paths.length;z++){
                
    path[z]=new File(paths[z].toString());
            }
            
    //run through the loop for all files contained within the /Records directory, if it's a directory do nothing
            
    for(int b=0b<path.lengthb++){
                if(!
    path[b].isDirectory()){
            
    //set up input tools
            
    FileReader fr=new FileReader(path[b]);
            
    BufferedReader input=new BufferedReader(fr);
            
    StringBuilder content=new StringBuilder();

            
    //initiate variables for result
            
    String line=null;
            
    String[] result;
            try{
            while((
    line=input.readLine())!=null){
                
    content.append(line);
                
    content.append(System.getProperty("line.seperator"));
            }
            }
            finally{
                
    input.close();
            }
            
    //split the contents of the file into sections
            
    result=content.toString().split("null");
            
    //set up the array and put each individual entry into a new position
            
    String[] result3=new String[result.length/4];
            
    int ind=0;
            
    System.out.println(result.length/4);
            for(
    int g=0g<result.length+3;g+=4){
                if(
    ind!=(result.length/4)){
                    
    System.out.println(ind+","+g);
                    
    result3[ind]=result[g]+"\n"+result[g+1]+"\n"+result[g+2]+"\n"+result[g+3]; //error lies here, it only runs through this loop once!
                    
    System.out.println("Result: "+result3[ind]);
                    
    ind++;
                }
                else{
                    continue;
                }
                
    //Remove duplicate entries from the array
                
    Set set = new HashSet(Arrays.asList(result3));
                
    fResult = (String[])(set.toArray(new String[set.size()]));
                for(
    int t=0t<fResult.lengtht++){
                    
    System.out.println("--------------------------");
                    
    System.out.println(fResult[t]);
                    
    System.out.println("--------------------------");
                    if(
    fResult[t]==null){
                        
    fResult[t]="";
                    }
                }
                for(
    int y=0y<fResult.lengthy++){
                    
    System.out.println(fResult.length);
                    
    String temp=fResult[y];
                    
    System.out.println("--------------------------");
                    
    System.out.println(temp);
                    
    System.out.println("--------------------------");
                    
    temp.replaceAll("null""");
                    
    System.out.println("--------------------------");
                    
    System.out.println(temp);
                    
    System.out.println("--------------------------");
                    
    String[] tempArray=temp.split(":");
                    
    System.out.println("--------------------------");
                    
    System.out.println(tempArray.length);
                    
    System.out.println("--------------------------");
                    
    projectName=tempArray[1];
                    
    projectID=tempArray[3];
                    
    date=tempArray[5];
                    
    description=tempArray[7];
                    
    rate=Double.parseDouble(tempArray[9]);
                    
    time=Double.parseDouble(tempArray[11]);
                    
    client2=tempArray[13];
                    
    Records temp2=new Records(projectNameprojectIDratedatedescriptiontimeclient2);
                    
    returnValues.add(temp2);
                }
            }
            }
            }
            
    //return the final result LinkedList
            
    return returnValues;
        } 
    Example file:
    Project Name: John Childcare ProjectID: JOHN311
    Date: 8/12/08 Description: John's Childcare Services
    Rate: 225.5 Time Spent: 6.0
    Client: John Doe
    Project Name: John Childcare ProjectID: JOHN311
    Date: 4/12/08 Description: John's Childcare Services
    Rate: 220.5 Time Spent: 5.0
    Client: John Doe
    Project Name: John Childcare ProjectID: JOHN311
    Date: 8/12/08 Description: John's Childcare Services
    Rate: 225.5 Time Spent: 6.0
    Client: John Doe
    Project Name: John Childcare ProjectID: JOHN311
    Date: 4/12/08 Description: John's Childcare Services
    Rate: 220.5 Time Spent: 5.0
    Client: John Doe
    Project Name: John Childcare ProjectID: JOHN311
    Date: 8/12/08 Description: John's Childcare Services
    Rate: 225.5 Time Spent: 6.0
    Client: John Doe
    Project Name: John Childcare ProjectID: JOHN311
    Date: 4/12/08 Description: John's Childcare Services
    Rate: 220.5 Time Spent: 5.0
    Client: John Doe
    This is really frustrating, I can't help feeling I'm overlooking something simple Any help would be greatly appreciated!

    Thanks in advance,
    Lswest
    Last edited by lswest; February 20th, 2009 at 07:57 PM.

  2. #2
    Join Date
    Feb 2009
    Beans
    789
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Care to suggest where I'm going wrong with this code?

    I would add some System.outs to see where it's going wrong.. is it really running through all files? Is it really going through the whole loop? Are the paths correctly determined?

    I understand the frustration but you should narrow it down a bit because most of this code will be fine.

  3. #3
    Join Date
    Apr 2007
    Location
    Munich, Germany
    Beans
    1,578
    Distro
    Ubuntu

    Re: Care to suggest where I'm going wrong with this code?

    Sorry, I forgot to mention, I have already added S.O.P's, it creates the array of files correctly, however, it only runs through the loop once, then continues on until it encounters an array out of bounds exception (due to the fact that it's not taking in the entirety of the file).

    Output from current S.O.P's:
    run:
    12
    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
    0,0
    Result: Project Name: John Childcare ProjectID: JOHN311
    Date: 8/12/08 Description: John's Childcare Services
    Rate: 225.5 Time Spent: 6.0
    Client: John Doe
    --------------------------
    null
    --------------------------
    --------------------------
    Project Name: John Childcare ProjectID: JOHN311
    Date: 8/12/08 Description: John's Childcare Services
    Rate: 225.5 Time Spent: 6.0
    Client: John Doe
    --------------------------
    2
    --------------------------

    at projectdossier.Files.ReadInFromFile(Files.java:201 )
    at projectdossier.Main.main(Main.java:25)
    --------------------------
    --------------------------

    --------------------------
    --------------------------
    1
    --------------------------
    Java Result: 1
    BUILD SUCCESSFUL (total time: 0 seconds)
    Well, I S.O.P'd every relevant section again in this code:
    PHP Code:
        public static RecordsLinkedList ReadInFromFile() throws IOExceptionFileNotFoundException{
            
    String[] fResult={""};
            
    String projectNameprojectIDdatedescriptionclient2;
            
    double ratetime;
            
    RecordsLinkedList returnValues=new RecordsLinkedList();
            
            
    //re-create the path to the file
            
    String temp3=recurseInDirFrom(home+"/Records");
            
    String[] paths=temp3.split(",");
            
    File[] path=new File[paths.length];
            for(
    int z=0z<paths.length;z++){
                
    path[z]=new File(paths[z].toString());
                
    System.out.print(path[z]);
            }
            
    //set up input tools
            
    for(int b=0b<path.lengthb++){
                
    System.out.println(b);
                if(!
    path[b].isDirectory()){
            
    FileReader fr=new FileReader(path[b]);
            
    BufferedReader input=new BufferedReader(fr);
            
    StringBuilder content=new StringBuilder();

            
    //initiate variables for result
            
    String line=null;
            
    String[] result;
            try{
            while((
    line=input.readLine())!=null){
                
    content.append(line);
                
    content.append(System.getProperty("line.seperator"));
                
    System.out.println(content.toString());
            }
            }
            finally{
                
    input.close();
            }
            
    //split the contents of the file into sections
            
    result=content.toString().split("null");
            for(
    int c=0c<result.lengthc++){
                
    System.out.println(result[c]);
            }
            
    //set up the array and put each individual entry into a new position
            
    String[] result3=new String[result.length/4];
            
    System.out.println(result3.length);
            
    int ind=0;
            
    System.out.println(result.length/4);
            for(
    int g=0g<result.length+3;g+=4){
                if(
    ind!=(result.length/4)){
                    
    System.out.println(ind+","+g);
                    
    result3[ind]=result[g]+"\n"+result[g+1]+"\n"+result[g+2]+"\n"+result[g+3];
                    
    System.out.println("Result: "+result3[ind]);
                    
    ind++;
                }
                else{
                    continue;
                }
                
    //Remove duplicate entries from the array
                
    Set set = new HashSet(Arrays.asList(result3));
                
    fResult = (String[])(set.toArray(new String[set.size()]));
                for(
    int t=0t<fResult.lengtht++){
                    
    System.out.println("-----------Result run"+t+"---------------");
                    
    System.out.println(fResult[t]);
                    
    System.out.println("--------------------------");
                    if(
    fResult[t]==null){
                        
    fResult[t]="";
                    }
                }
                for(
    int y=0y<fResult.lengthy++){
                    
    System.out.println(fResult.length);
                    
    String temp=fResult[y];
                    
    System.out.println("-----------Result run"+y+"---------------");
                    
    System.out.println(temp);
                    
    System.out.println("--------------------------");
                    
    temp.replaceAll("null""");
                    
    System.out.println("--------------------------");
                    
    System.out.println(temp);
                    
    System.out.println("--------------------------");
                    
    String[] tempArray=temp.split(":");
                    
    System.out.println("--------------------------");
                    
    System.out.println(tempArray.length);
                    
    System.out.println("--------------------------");
                    
    projectName=tempArray[1];
                    
    projectID=tempArray[3];
                    
    date=tempArray[5];
                    
    description=tempArray[7];
                    
    rate=Double.parseDouble(tempArray[9]);
                    
    time=Double.parseDouble(tempArray[11]);
                    
    client2=tempArray[13];
                    
    Records temp2=new Records(projectNameprojectIDratedatedescriptiontimeclient2);
                    
    returnValues.add(temp2);
                }
            }
            }
            }
            
    //return the final result LinkedList
            
    return returnValues;
        } 
    and the result of that was the following:
    Code:
    run:
    /home/lswest/Records/home/lswest/Records/John Doe/home/lswest/Records/John Doe/JOHN311.txt/home/lswest/Records/Test Client/home/lswest/Records/Test Client/TEST314.txt0
    1
    2
    Project Name: John Childcare        ProjectID: JOHN311null
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare Servicesnull
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0null
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John Doenull
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311null
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare Servicesnull
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0null
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John Doenull
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311null
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare Servicesnull
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0null
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John Doenull
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311null
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare Servicesnull
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0null
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John Doenull
    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311null
            at projectdossier.Files.ReadInFromFile(Files.java:208)
            at projectdossier.Main.main(Main.java:25)
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare Servicesnull
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0null
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John Doenull
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311null
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare Servicesnull
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0null
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John Doenull
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311null
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare Servicesnull
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0null
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John Doenull
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311null
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare Servicesnull
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0null
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John Doenull
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311null
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare Servicesnull
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0null
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John Doenull
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311null
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare Servicesnull
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0null
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John Doenull
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311null
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare Servicesnull
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0null
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John Doenull
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311null
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare Servicesnull
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0null
    Project Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 8/12/08                        Description: John's Childcare ServicesnullRate: 225.5                        Time Spent: 6.0nullClient: John DoenullProject Name: John Childcare        ProjectID: JOHN311nullDate: 4/12/08                        Description: John's Childcare ServicesnullRate: 220.5                        Time Spent: 5.0nullClient: John Doenull
    Project Name: John Childcare        ProjectID: JOHN311
    Date: 8/12/08                        Description: John's Childcare Services
    Rate: 225.5                        Time Spent: 6.0
    Client: John Doe
    Project Name: John Childcare        ProjectID: JOHN311
    Date: 4/12/08                        Description: John's Childcare Services
    Rate: 220.5                        Time Spent: 5.0
    Client: John Doe
    Project Name: John Childcare        ProjectID: JOHN311
    Date: 8/12/08                        Description: John's Childcare Services
    Rate: 225.5                        Time Spent: 6.0
    Client: John Doe
    Project Name: John Childcare        ProjectID: JOHN311
    Date: 4/12/08                        Description: John's Childcare Services
    Rate: 220.5                        Time Spent: 5.0
    Client: John Doe
    Project Name: John Childcare        ProjectID: JOHN311
    Date: 8/12/08                        Description: John's Childcare Services
    Rate: 225.5                        Time Spent: 6.0
    Client: John Doe
    Project Name: John Childcare        ProjectID: JOHN311
    Date: 4/12/08                        Description: John's Childcare Services
    Rate: 220.5                        Time Spent: 5.0
    Client: John Doe
    Project Name: John Childcare        ProjectID: JOHN311
    Date: 8/12/08                        Description: John's Childcare Services
    Rate: 225.5                        Time Spent: 6.0
    Client: John Doe
    Project Name: John Childcare        ProjectID: JOHN311
    Date: 4/12/08                        Description: John's Childcare Services
    Rate: 220.5                        Time Spent: 5.0
    Client: John Doe
    Project Name: John Childcare        ProjectID: JOHN311
    Date: 8/12/08                        Description: John's Childcare Services
    Rate: 225.5                        Time Spent: 6.0
    Client: John Doe
    Project Name: John Childcare        ProjectID: JOHN311
    Date: 4/12/08                        Description: John's Childcare Services
    Rate: 220.5                        Time Spent: 5.0
    Client: John Doe
    Project Name: John Childcare        ProjectID: JOHN311
    Date: 8/12/08                        Description: John's Childcare Services
    Rate: 225.5                        Time Spent: 6.0
    Client: John Doe
    Project Name: John Childcare        ProjectID: JOHN311
    Date: 4/12/08                        Description: John's Childcare Services
    Rate: 220.5                        Time Spent: 5.0
    Client: John Doe
    12
    12
    0,0
    Result: Project Name: John Childcare        ProjectID: JOHN311
    Date: 8/12/08                        Description: John's Childcare Services
    Rate: 225.5                        Time Spent: 6.0
    Client: John Doe
    -----------Result run0---------------
    null
    --------------------------
    -----------Result run1---------------
    Project Name: John Childcare        ProjectID: JOHN311
    Date: 8/12/08                        Description: John's Childcare Services
    Rate: 225.5                        Time Spent: 6.0
    Client: John Doe
    --------------------------
    2
    -----------Result run0---------------
    
    --------------------------
    --------------------------
    
    --------------------------
    --------------------------
    1
    --------------------------
    Java Result: 1
    BUILD SUCCESSFUL (total time: 0 seconds)
    Last edited by lswest; February 20th, 2009 at 08:12 PM. Reason: Adding more debug info

  4. #4
    Join Date
    Feb 2009
    Beans
    789
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Care to suggest where I'm going wrong with this code?

    I'm unable to run the code which makes things tricky but could it be here?

    Code:
    if(ind!=(result.length/4)){
        // code
        ind++;
    }
    else{
        continue;
    }
    Let's say result.length = 12 and ind starts at 0. As long as ind is < 3, the code runs and ind is incremented. But as soon as ind is equal to result.length / 4, the code continues but ind is never incremented so it remains at its value and code in the if-statement never gets run anymore. In other words, it only runs once.

  5. #5
    Join Date
    Apr 2007
    Location
    Munich, Germany
    Beans
    1,578
    Distro
    Ubuntu

    Re: Care to suggest where I'm going wrong with this code?

    I thought about that too, but the current result.length's value is 48, so that result.length/4=12, and the ind integer never goes past the value "0". Somehow it jumps out of the loop before increasing the value of ind. That is, however, the area of the code that is creating the issue. I just don't see why it jumps out of the loop before completing.

    Also, if I comment out the "continue;" it still only runs once.

    Lastly, if result.length is 12 I would only want the loop to run 3 times, since the file then only holds 3 entries.
    Last edited by lswest; February 20th, 2009 at 08:27 PM.

  6. #6
    Join Date
    Apr 2007
    Location
    Munich, Germany
    Beans
    1,578
    Distro
    Ubuntu

    Re: Care to suggest where I'm going wrong with this code?

    Since I don't usually bump threads, but I could really use some help with this one, I will have to:

    *bump*

    *EDIT* Solved it, I had to close the for loop earlier (somehow the closing brace was at the end of the method).
    Last edited by lswest; February 24th, 2009 at 05:11 PM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •