如何返回Point函数的值.例:
public Point myFunction(int x, int y) {
return ???; // Want to return X and Y as a point.
}
Run Code Online (Sandbox Code Playgroud)
我不知道回报应该如何.请帮忙.
你有没有尝试过:
public Point myFunction(int x, int y) {
return new Point(x, y);
}
Run Code Online (Sandbox Code Playgroud)
你想要做什么?
| 归档时间: |
|
| 查看次数: |
4829 次 |
| 最近记录: |