摘要: package day01; import java.util.Scanner; public class xieyunchuang { public static void main(String[] args) { Scanner input=new Scanner(System.in); in 阅读全文
posted @ 2019-03-24 21:22 嘿嘿嘿😱 阅读(209) 评论(1) 推荐(0) 编辑
摘要: Java作业第2次输出halloword 考察任务:调用主方法,使用主方法的参数。 思想:类的主方法是这个类的入口,也是一个静态方法,可以通过其它类的主方法进行调用。 阅读全文
posted @ 2019-03-17 12:14 嘿嘿嘿😱 阅读(404) 评论(0) 推荐(0) 编辑
摘要: Java作业: 答: 源代码: public class Point { public int x,y; public Point(int x,int y) { this.x=x; this.y=y; } public Point() { this(0,0); } public Point(Poin 阅读全文
posted @ 2019-03-10 22:16 嘿嘿嘿😱 阅读(116) 评论(0) 推荐(0) 编辑