title: Reading a formatted text file in java
body: <p>I mainly program in C++ and I have been working on porting my game over to Java with Android.
  I ran into a short problem with some of my code. 
  My text file is in this format:</p>
  
  <pre><code>0:1 0:0 1:1 2:2 3:3   
  </code></pre>
  
  <p>I read it in with the fscanf function like so:</p>
  
  <pre><code>for(int Y = 0;Y &lt; MAP_HEIGHT;Y++) {
      for(int X = 0;X &lt; MAP_WIDTH;X++) {
          Tile tempTile;
  
          fscanf(FileHandle, "%d:%d ", &amp;tempTile.TileID, &amp;tempTile.TypeID);
  
          TileList.push_back(tempTile);
      }
  </code></pre>
  
  <p>How would I read in the formatted data shown in Java? Obviously there is no fscanf lol afaik...  </p>