title: What is the best way to parse a line using Java?
body: <p>I'm trying to write a small Java application, and part of its job is to read, write, and parse lines from text files. My problem though is taking a line from a text file, reading it, and breaking it into parts. For example, an example line is: </p>
  
  <p><code>Tuesday, 11/11/14 10:30:32: 3.93</code></p>
  
  <p>I want my program to be able to look at this and fill up for example a <code>string day = "tuesday"</code>, and <code>value = 3.93</code>.</p>
  
  <pre><code>FileReader fileReader = new FileReader(itemValue);
  BufferedReader bufferedReader = new BufferedReader(fileReader);
  StringBuffer stringBuffer = new StringBuffer();
  String line;
  while ((line = bufferedReader.readLine()) != null) {
      stringBuffer.append(line + "\n");
      int[] value;
  
  }
  fileReader.close();
  System.out.println("Contents of file:");
  System.out.println(stringBuffer.toString());
  </code></pre>
  
  <p>This is the code I currently have - it will parse through my file and print out line by line into the console, but I don't really know how to actually process the line. I've tried using bufferedReader.readLine as the variable containing the line, but that doesn't seem to be the answer. I'm extremely new to Java and this is a big roadblock in my programming, so if anybody could point me toward a solution, that would be awesome. Thanks in advance! :)</p>
  
  <p>Edit: All of my data looks exactly the same, here is the rest of it.</p>
  
  <pre><code>Tuesday, 11/11/14 10:29:23: 4.48
  Tuesday, 11/11/14 10:29:27: 5.0
  Tuesday, 11/11/14 10:29:39: 5.95
  Tuesday, 11/11/14 10:29:46: 6.0
  Tuesday, 11/11/14 18:07:25: 4.0
  Tuesday, 11/11/14 18:07:27: 4.5
  Tuesday, 11/11/14 18:07:33: 5.0
  Tuesday, 11/11/14 18:07:39: 5.9
  Tuesday, 11/11/14 18:07:51: 20.0
  </code></pre>