摘要: package itcast.cn; import android.app.AlertDialog; import android.content.DialogInterface; import android.os.Bundle; import android.app.Activity; publ 阅读全文
posted @ 2021-09-25 21:24 777733333 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 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-24 20:06 777733333 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 1.编写一个简单程序,要求数组长度为5,静态赋值10,20,30,40,50,在控制台输出该数组的值。 public class test11 { /** * @param args */ public static void main(String[] args) { // TODO Auto-g 阅读全文
posted @ 2021-04-16 23:30 777733333 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 1.使用for循环计算1-100的和,除了以3结尾的那些数 public class test11 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub i 阅读全文
posted @ 2021-04-12 21:37 777733333 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 2021-04-07 1.public class test12 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub int i=0; int sum=0 阅读全文
posted @ 2021-04-07 21:38 777733333 阅读(17) 评论(0) 推荐(0) 编辑