title: JAVA how to summarise the score of soccer team from the text file?
body: <p>My assignment is I have to manage a soccer league.There is a soccer league (text file) that I have to import into the program.Each line of the imported file displays the outcome of a single game:the name of two teams together with the scores like </p>
  
  <p>Peter 4 Tiger 3</p>
  
  <p>Sky   2 Peter  0</p>
  
  <p>Tiger 1 Sky 2</p>
  
  <p>I have to write the program to read this text file and displays the output of team records like</p>
  
  <p>Team      Wins   Losses</p>
  
  <p>Peter      1       1</p>
  
  <p>Tiger      0       2</p>
  
  <p>Sky        2       0</p>
  
  <p>++++++++++++++++++++++++++++++++++++++++++++++</p>
  
  <p>I have tried to connect the whole  knowledge that I have ever read from the textbook but it's not work.I just know that how to import the text file into java program. But don't know how to use the integer/data from that file into calculated/string progression  .I cannot really realise the hint  that can guide me to the solution.Anyone can help me please?
  I have just learned java by myself for a few months.</p>
  
  <p>BIG THANKS.</p>