string bag1[][] = { {"Bayern Munich","Germany"},{"Sevilla","Spaın"},{"Real Madrid","Spaın"},{"Liverpool","England"},{"Juventus","Italy"},{"Paris Saint","France"},{"Zenit","Rusia"},{"Porto","Rusia"}};
string bag2[][] = { {"Barselona","Spaın"},{"Atletico Madrid","Spaın"},{"Manchester City","England"},{"Manchester United","England"},{"Borussia Dortmund","Germany"},{"Shakhtar Donetsk","Ukrayna"},{"Chelsea","England"},{"Ajax","Hollanda"}};
string bag3[][] = { {"Dynamo Kiev","Ukrayna"},{"Redbull Salzburg","Germany"},{"RB Leibzig","Germany"},{"Internazionale","Italy"},{"Olympiacos","Italy"},{"Lazio","Italy"},{"Krasnodar","Rusia"},{"Atalanta","Italy"}};
string bag4[][] = { {"Lokomotiv M","Rusia"},{"Marseille","France"},{"Club Brugge","Belçika"},{"BorMönchengladbach","Germany"},{"Galatasaray","Türkiye"},{"Midtjylland","Danimarka"},{"Rennes","France"},{"Ferenevaros","Macaristan"}};
I have 4 arrays in java. I want to select random one item without repetition from each one. And I want to add 4 item in 8 different groups.I don't want to 2 same country in one group.
Aucun commentaire:
Enregistrer un commentaire