1 public class Atomic4 extends Thread {
5 public static void main(String[] st) {
6 int mid = (128<<24)|(195<<16)|(175<<8)|70;
13 at4 = global new Atomic4();
14 at4.team = global new People[2];
15 at4.team[0] = global new People();
16 at4.team[1] = global new People();
19 age = global new Integer(35);
20 at4.team[0].age = age;
21 b = at4.team[0].getAge();
24 age = global new Integer(70);
25 at4.team[1].age = age;
26 c = at4.team[1].getAge();
29 System.printString("\n");
31 System.printString("\n");
32 System.printString("Starting\n");
34 System.printString("Finished\n");
44 ag = team[1].getAge();
45 //ag = team[0].getAge();
50 System.printString("Gets Pension");
51 System.printString("\n");
53 System.printString("Gets No Pension");
54 System.printString("\n");
66 public People(String name, Integer age) {
71 public void setName(String n) {
75 public void setAge(Integer a) {
79 public String getName() {
84 return age.intValue();
87 public boolean isSenior() {
88 if(this.getAge() > 65)