- In the extension bar, click the AdBlock Plus icon
- Click the large blue toggle for this website
- Click refresh
- In the extension bar, click the AdBlock icon
- Under "Pause on this site" click "Always"
- In the extension bar, click on the Adguard icon
- Click on the large green toggle for this website
- In the extension bar, click on the Ad Remover icon
- Click "Disable on This Website"
- In the extension bar, click on the orange lion icon
- Click the toggle on the top right, shifting from "Up" to "Down"
- In the extension bar, click on the Ghostery icon
- Click the "Anti-Tracking" shield so it says "Off"
- Click the "Ad-Blocking" stop sign so it says "Off"
- Refresh the page
- In the extension bar, click on the uBlock Origin icon
- Click on the big, blue power button
- Refresh the page
- In the extension bar, click on the uBlock icon
- Click on the big, blue power button
- Refresh the page
- In the extension bar, click on the UltraBlock icon
- Check the "Disable UltraBlock" checkbox
- Please disable your Ad Blocker
- Disable any DNS blocking tools such as AdGuardDNS or NextDNS
- Disable any privacy or tracking protection extensions such as Firefox Enhanced Tracking Protection or DuckDuckGo Privacy.
If the prompt is still appearing, please disable any tools or services you are using that block internet ads (e.g. DNS Servers, tracking protection or privacy extensions).
Question
Tom Bonez
Hey,
I'm looking for some advice on the best method of dealing with the last part of my assignment.
Basically I'm making a Football Score Reader, and the last thing I need to incorporate is a league table.
Basically the results come from results.txt in the following format: <home_team_name> [<home_team_score>] | <away_team_name> [<away_team_score>]
An example of results.txt:
Each run through the while loop the variables homeTeam, intHomeScore, awayTeam and intAwayScore are set as you'd presume.
Basically what I need to happen is for a league table to be created in the following format:
-----------------------------------------------------------------------------------------------------------------------
Team | Played| Goal Difference | GamesWon | GamesDrawn | GamesLost | Points
-----------------------------------------------------------------------------------------------------------------------
Liverpool| 15 | +24 | 10 | 2 | 3 | 32
Chelsea | 14 | +20 | 9 | 2 | 3 | 29
Newcastle| 15 | +15 | 8 | 3 | 4 | 27
..
..
Hull | 14 | -20 | 1 | 4 | 9 | 7
Thanks in advance,
Tom
Link to comment
https://www.neowin.net/forum/topic/957808-java-league-table/Share on other sites
3 answers to this question
Recommended Posts