Hi everyone! this should be pretty simple for programmers on this forum... I need to design a java program which interacts with a MS Access DB in order to simulate the progression of a soccer round robin (e.g. FA Cup). i.e. Select 2 teams (out of 16 teams) randomly to play each other & determine the winner, who therefore plays the winner of one of the other matches etc. until the final winner is determined. I've created a database (SoccerChalleng e) with the following tables: Teams, Round 1 results, Quarter-final results, Semi-final results & Final results. I've already succesfully connected the DB with Administrative tools and displayed the "Teams" table. All I need help with is to:
1)Randomly select 2 teams from the "Teams" table to play each other - without selecting a team more than once of course.
2)Determine winner and place them into the next round - I think I have to use something similar to this:
NB: I have to do this using JFrame or JOptionPane, no applets preferably. Feel free to suggest any structural changes I should make to my database to make it work as well please. Any bit of help will be very very, very appreciated guys!! Thanks a mil!!
1)Randomly select 2 teams from the "Teams" table to play each other - without selecting a team more than once of course.
2)Determine winner and place them into the next round - I think I have to use something similar to this:
Code:
if (goals1 > goals2) { winners[0] = team1;
Comment