-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathMain.java
More file actions
57 lines (37 loc) · 1.23 KB
/
Main.java
File metadata and controls
57 lines (37 loc) · 1.23 KB
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
56
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* Created by prestonbattin on 1/18/17.
*/
public class Main {
public static void main(String[] args) {
//Rotate Array
List number = new ArrayList();
for (int i = 1; i < 7; i++) {
number.add(i);
}
System.out.println("Before rotations " + Arrays.toString(number.toArray()));
RotateArray rotate = new RotateArray();
System.out.println("after rotation");
rotate.swapList(number, 5);
//Human Class
Human person = new Human("Kent Klark", "Male", "Bus Boy", "101 Wazoo Lane", 23);
SuperHero superHero = new SuperHero("Kevin", "Female", "Cheer Leader", "454 Hello World Lane", 20, "Good",
"Kelly Frost", "Laser Vision");
person.getName();
person.getGender();
person.getOccupation();
person.getAddress();
person.getAge();
superHero.getName();
superHero.getGender();
superHero.getOccupation();
superHero.getAddress();
superHero.getAge();
superHero.getSide();
superHero.getHeroName();
superHero.getAbility();
//Class Manager
}
}