mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 01:50:56 +07:00
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+"]";
|
|
}
|
|
}
|