Question : Reference Program

Hi,

I ran following program

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:
package Classes;

//Reference Passing Test 
 
 
class Point {
  public int x;

  public int y;
}

public class Reference1 {
  public static void increment(int x) {
    x++;
  }

  public static void reset(Point point) {
    point.x = 0;
    point.y = 0;
  }

  public static void main(String[] args) {
    int a = 9;
    increment(a);
    System.out.println(a); // prints 9
    Point p = new Point();
    p.x = 400;
    p.y = 600;
    reset(p);
    System.out.println(p.x); // prints 0
  }
} 
 
I got output like
9
0


I was not clear on the output and concept behind this. Any suggestions, ideas, links, resources, sample code highly appreciated. Thanks in advance

Answer : Reference Program

Can you not do the Import manually ?  Also include importing any relationships?

Also ... you cannot create an EXE from an MDB file ...

mx
Random Solutions  
 
programming4us programming4us