1 public class Atomic5 extends Thread {
5 public static void main(String[] st) {
6 int mid = (128<<24)|(195<<16)|(175<<8)|70;
14 at5 = global new Atomic5[4];
17 for(int i = 0 ; i< 4; i++) {
18 at5[i] = global new Atomic5();
19 at5[i].team = global new People[2];
20 at5[i].team[0] = global new People();
21 at5[i].team[1] = global new People();
22 age = global new Integer(35);
23 name = global new String("Harry Potter");
24 at5[i].team[0].name = name;
25 at5[i].team[0].age = age;
27 b = at5[1].team[0].getAge();
30 age = global new Integer(70);
31 name = global new String("John Smith");
32 at5[1].team[1].name = name;
33 at5[1].team[1].age = age;
34 c = at5[1].team[1].getAge();
38 System.printString("\n");
39 System.printString("Starting\n");
40 for(int i = 0 ; i< 4; i++) {
47 for(int i = 0 ; i< 4; i++) {
51 System.printString("Finished\n");
63 ag = team[1].getAge();
64 newname = team[1].getName();
69 System.printString(" gets Pension");
70 System.printString("\n");
73 System.printString("Atomic5() Inside the run program");
74 System.printString("\n");
76 for(int i=0; i<4 ; i++) {
90 public People(String name, Integer age) {
95 public void setName(String n) {
99 public void setAge(Integer a) {
103 public String getName() {
107 public int getAge() {
108 return age.intValue();
111 public boolean isSenior() {
112 if(this.getAge() > 65)