forked from haonlywan/CodeHS-Java-APCSA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path1.2.10 Team Rankings
55 lines (51 loc) · 1.31 KB
/
1.2.10 Team Rankings
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
public class TeamRanks
{
public static void main(String[] args) {
String team1 = "Alabama";
String team2 = "Ohio State";
String team3 = "Florida State";
String team4 = "USC";
String team5 = "Clemson";
String team6 = "Penn State";
String team7 = "Oklahoma";
String team8 = "Maryland";
String team9 = "Wisconsin";
String team10 = "Michigan";
/*
* Don't edit above this line.
* Enter your code below this comment.
*/
team2 = team6;
team3 = team8;
team4 = team10;
team5 = "USC";
team6 = "Clemson";
team8 = team9;
team9 = "Florida State";
team10 = "Ohio State";
/*
* Don't edit below this line.
* Enter your code above this comment.
*/
System.out.print("1. ");
System.out.println(team1);
System.out.print("2. ");
System.out.println(team2);
System.out.print("3. ");
System.out.println(team3);
System.out.print("4. ");
System.out.println(team4);
System.out.print("5. ");
System.out.println(team5);
System.out.print("6. ");
System.out.println(team6);
System.out.print("7. ");
System.out.println(team7);
System.out.print("8. ");
System.out.println(team8);
System.out.print("9. ");
System.out.println(team9);
System.out.print("10. ");
System.out.println(team10);
}
}