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();
17 age = global new Integer(35);
18 name = global new String("Harry Potter");
19 at4.team[0].name = name;
20 at4.team[0].age = age;
21 b = at4.team[0].getAge();
24 age = global new Integer(70);
25 name = global new String("John Smith");
26 at4.team[1].name = name;
27 at4.team[1].age = age;
28 c = at4.team[1].getAge();
32 System.printString("\n");
33 System.printString("Starting\n");
35 System.printString("Finished\n");
46 ag = team[1].getAge();
47 newname = team[1].getName();
52 System.printString(" gets Pension");
53 System.printString("\n");
65 public People(String name, Integer age) {
70 public void setName(String n) {
74 public void setAge(Integer a) {
78 public String getName() {
83 return age.intValue();
86 public boolean isSenior() {
87 if(this.getAge() > 65)