Commit 01fc5a68 authored by Elijah's avatar Elijah

commit

parent 4bb3ee2f
File added
File added
public class Main2 {
public static void main(String[] args){
Point a = new Point();
a.set(4.1, 5.6);
Point b = new Point();
b.set(9.6, 10.7);
Point c = new Point();
c.set(105.9, 87.1);
Point d = b;
d.set(5.2, 10.9);
System.out.println("a is" + a.x + " " + a.y);
System.out.println("b is" + b.x + " " + b.y);
System.out.println("c is" + c.x + " " + c.y);
}
}
public class Point {
double x;
double y;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment