摘要: 1.创建3个页面 第一个界面有3个button 第二个界面有单选按钮 学历:初中 高中 专科 本科 第三个界面有5个复选框 学过哪些课程 Java Ios Android Html Jsp 把第二个界面设置为启动界面 <?xml version="1.0" encoding="utf-8"?> <R 阅读全文
posted @ 2021-10-10 19:45 偷一夜星光 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 1. 2.九宫格 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.a 阅读全文
posted @ 2021-10-10 19:44 偷一夜星光 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 1.定义一个点类Point,包含两个成员变量x,y分别表示x和y坐标,2个构造器Point( )和Point(int x0,int y0),以及一个movePoint(int dx,int dy)方法实现点的位置移动,创建两个Point对象p1、p2,分别调用movePoint方法后,打印p1和p2 阅读全文
posted @ 2021-05-25 18:26 偷一夜星光 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 1.编写一个方法,实现冒泡排序(由小到大),并调用该方法 package text1; import java.util.Scanner; public class HelloWorid{ public static void maopao() { Scanner input = new Scann 阅读全文
posted @ 2021-05-11 21:47 偷一夜星光 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 上机: 1.编写一个简单程序,要求数组长度为5,分别赋值10,20,30,40,50,在控制台输出该数组的值。(知识点:数组定义和创建、一维数组初始化)[必做题]? public class Text1 { /** * @param args */ public static void main(S 阅读全文
posted @ 2021-04-23 16:25 偷一夜星光 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 上机: 1.编写一个简单程序,要求数组长度为5,静态赋值10,20,30,40,50,在控制台输出该数组的值。 public class Text1 { /** * @param args */ public static void main(String[] args) { // TODO Aut 阅读全文
posted @ 2021-04-16 20:37 偷一夜星光 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 上机: 1.使用for 循环计算1-100的和,除了以3结尾的那些数 public class Text1 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method st 阅读全文
posted @ 2021-04-12 20:43 偷一夜星光 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 上机作业: 1.分别使用for循环,while循环,do循环求1到100之间所有能被3整除的整数的和。 for: package text1; import java.util.Scanner; public class HelloWorid{ public static void main(Str 阅读全文
posted @ 2021-04-07 12:47 偷一夜星光 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 随堂练习 1.输入两个数,交换后输出 package text1; import java.util.Scanner; public class HelloWorid{ public static void main(String[] args) { Scanner input=new Scanne 阅读全文
posted @ 2021-03-28 21:12 偷一夜星光 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 上机练习: 1.输入一个年份,判断是不是闰年 import java.util.Scanner; public class text1 { /** * @param args */ public static void main(String[] args) { // TODO Auto-gener 阅读全文
posted @ 2021-03-28 17:11 偷一夜星光 阅读(60) 评论(0) 推荐(0) 编辑