求救求救……大神教一下,谢谢🙏
aide吧
全部回复
仅看楼主
level 5
求救求救……大神教一下,谢谢🙏🙏🙏
2017年06月22日 16点06分 1
level 5
2017年06月22日 16点06分 2
level 5
public class Main
{
public static void main(String[] args)
{
Rectangle rect = new Rectangle();
rect.width = 100;
System.out.println(rect.width);
rect.height =200;
System.out.println(rect.height);
Rectangle rect2 = new Rectangle();
rect2.width = 10;
System.out.println(rect2.width);
rect2.height = 20;
System.out.println(rect2.height);
}
}
class Rectangle
{
int width;
int height;
}
2017年06月22日 16点06分 3
level 5
x和y应该怎样添加 添加在哪
2017年06月22日 16点06分 4
level 5
在Rectangle后面再建一个Point类,xy放point里
2017年06月22日 16点06分 5
刚刚尝试不对 不知道那里错了 你能复制上面然后添加进去我看一下? 谢谢🙏
2017年06月22日 16点06分
level 5
public class Main
{
public static void main(String[] args)
{
Rectangle rect = new Rectangle();
rect.width = 100;
System.out.println(rect.width);
rect.height =200;
System.out.println(rect.height);
Rectangle rect2 = new Rectangle();
rect2.width = 10;
System.out.println(rect2.width);
rect2.height = 20;
System.out.println(rect2.height);
}
}
class Rectangle
{
int width;
int height;
}
class Point{
int x;
int y;
}
看题目意思是这样吧应该
2017年06月23日 14点06分 6
谢谢谢谢[真棒][真棒]
2017年06月24日 08点06分
1