Java Average, Jumps
<p>I'm a complete Java newbie. Started Last Monday and have never done any programming in any language before. So please bear with me if I find easy things complicated. </p>

<p>I've been given a text file. As shown below:</p>

<p>The First piece of data is time (in seconds past midnight), the second is score (irrelevant), the third is Jump (dont need to know what this means...)</p>

<p>I can happily read this in using this code: </p>

<pre><code>import java.io.FileReader;
import java.io.BufferedReader;
import java.util.ArrayList;



 public class ReadText {

  public static void main(String[] args) throws Exception {

   String InputFile="C:\\PracticeSpreads.txt";
   ArrayList&lt;String&gt; fileLines=new ArrayList&lt;String&gt;();
   FileReader fr;
   BufferedReader br;
   fr = new FileReader(InputFile);
   br = new BufferedReader(fr);
   String line;
   br.readLine();

   while ((line=br.readLine()) != null) {

   fileLines.add(line);

   //System.out.print(line+"\n");



 }

 }
 }
</code></pre>

<p>I skipped the first line because it makes it easier.</p>

<p>Ok basically what I need to do is create a Daily Time weighted Average Jump.</p>

<p>I can get an average Jump but not a time weighted average Jump.</p>

<p>The formula for time weighted average jump is=</p>

<p>For times when a second has more than one Jump, I want to take the "average jump" for that time period.</p>

<p>But I've literally got no idea as I'm not too sure as to how the loops would arrange themselves. </p>

<p>Hopefully someone can help me please!</p>
