我需要数组帮助。我需要根据用户输入打印出一张联赛表。我知道团队的名字 - 以数组形式存在。我需要询问用户有关阵列中每个团队的统计信息。如何循环遍历阵列中的每个团队以获取此信息,例如"有多少胜利,吸引,损失?" - 这会从阵列中拉出第一支球队吗?
import java.util.Scanner;
public class RugbyProject {
final static int RESULT_POINTS_WIN = 2;
final static int RESULT_POINTS_DRAW = 1;
final static int RESULT_POINTS_LOSS = 0;
final static int GAME_POINTS_TRY = 5;
final static int GAME_POINTS_PENALTY = 3;
final static int GAME_POINTS_DROP_GOAL = 3;
final static int GAME_POINTS_CONVERISON = 2;
public static void main(String[] args) {
String[] teams = {"Ireland", "England", "France", "Wales", "Scotland", "Italy"};
Scanner myScanner = new Scanner(System.in);
System.out.println("Welcome to The Six Nations Stats Centre. ");
for (int i = 0; i < teams.length; i++) {
System.out.println("Please enter the number of wins for " )[];}
int gamesWon = getIntFromUser("Enter whole number for wins please, myScanner");