mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-02 14:38:30 +07:00
GitOrigin-RevId: 122e10e69f93c31e289a024381c7315f1a62203b
19 lines
256 B
Java
19 lines
256 B
Java
class Main {
|
|
void test() {
|
|
System.out.println(new <caret>Point(1, 2).toString());
|
|
}
|
|
}
|
|
|
|
class Point {
|
|
private int x, y;
|
|
|
|
public Point(int _x, int _y) {
|
|
x = _x;
|
|
y = _y;
|
|
}
|
|
|
|
public String toString() {
|
|
return "["+x+", "+y+"]";
|
|
}
|
|
}
|