diff options
Diffstat (limited to 'tutorial/examples/capsule/PointUser.oj')
-rw-r--r-- | tutorial/examples/capsule/PointUser.oj | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tutorial/examples/capsule/PointUser.oj b/tutorial/examples/capsule/PointUser.oj new file mode 100644 index 0000000..f81a335 --- /dev/null +++ b/tutorial/examples/capsule/PointUser.oj @@ -0,0 +1,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;
+ }
+
+}
|