title: How to find certain words in a text file, then find numbers in Java?
body: <p>I have the following text file (answers.txt):</p>
  <blockquote>
  <p>Problem A: 23|47|32|20</p>
  <p>Problem B: 40|50|30|45</p>
  <p>Problem C: 5|8|11|14</p>
  <p>Problem D: 20|23|25|30</p>
  </blockquote>
  <p>What I need is something that will read the problem that I tell it(Problem A, Problem B), then read the numbers after it, which are separated by the lines, and print it out like this:</p>
  <blockquote>
  <p>Answers for Problem A: a.23 b.47 c.32 d.20</p>
  </blockquote>
  <p>Does anyone know how this can be done? I've been stuck on it for a while.</p>