I don't understand why the team variable is not printed. What's the problem? Why that part of code doesn't work?
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int testCases = in.nextInt();
System.out.println(testCases);
for(int i = testCases; i > 0; i--) {
int nTeams = in.nextInt();
System.out.println(nTeams);
for(int k = nTeams; k>0; k--) {
System.out.println("Entrou no looping de Times!");
String team = in.nextLine();
System.out.println(team);
String[] arrTeam = team.split(" ");
for( int j = 0; j<arrTeam.length; j++) {
System.out.println(arrTeam[j]);
}
}
}
}
}