05 2021 档案

摘要:1,定义一个点类Point, 包含2个成员变量x、y分别表示x和y坐标,2个构造器Point()和Point( intx0,y0),以及一个movePoint (int dx,intdy)方法实现点的位置移动,创建两个Point对象p1、p2, 分别调用movePoint方法后,打印pl和p2的坐标 阅读全文
posted @ 2021-05-25 16:06 &+-wbs 阅读(66) 评论(0) 推荐(0) 编辑
摘要:1编写一个方法,实现冒泡排序法(由小到大),并调用该方法 import java.util.Scanner; public class txt2 { public static void txt2() { Scanner input = new Scanner(System.in); System. 阅读全文
posted @ 2021-05-11 15:06 &+-wbs 阅读(114) 评论(0) 推荐(0) 编辑