summaryrefslogtreecommitdiff
path: root/tutorial/examples/capsule/PointUser.oj
blob: f81a3357122b4d1af75ca4d3dc0c0324aec52d7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * PointUser.oj
 */
package examples.capsule;


public class PointUser
{

    public static void main( String[] args ) {
    Point p = new Point( 1, 2 );
    p.name = "MyFavorite";
    int x = p.x + 1;
    p.y = x * 2 + p.y;
    }

}