1 public class FieldPointer {
3 public FieldPointer() {
6 public static void main(String[] args) {
8 FieldPointer fp = new FieldPointer();
10 fp.x.name = new String("TestAccount");
11 fp.x.accountid = new Integer(12345);
12 fp.x.balance = new Item();
13 fp.x.balance.i = new Integer(11000);
14 bal = fp.getBalance(fp.x.accountid);
16 bal = bal + fp.x.getBalance().intValue();
18 bal = fp.x.getBalance().intValue();
22 public int getBalance(Integer accountid) {
23 if(accountid.intValue() > 12000) {
31 public class Account {
37 public Integer getBalance() {