title: How to split a fraction into two Integers?
body: <p>I'm working on a program where I need to create an object list from an external file containing fractions. I need to separate the numerator and denominator into two separate integers, without having the "/" be involved.</p>
  
  <p>This is what I have so far:</p>
  
  <pre><code>while (fractionFile.hasNextLine()){
  
      num.add(fractionFile.nextInt());
      den.add(fractionFile.nextInt());
  
      }
  </code></pre>
  
  <p>I can't figure out how to have num.add read up until the "/" and have den.add read right after the "/"</p>
  
  <p>Any help would be much appreciated.</p>