摘要:
package itcast.cn; import android.app.AlertDialog; import android.content.DialogInterface; import android.os.Bundle; import android.app.Activity; publ 阅读全文
摘要:
1、定义一个点类Point, 包含2个成员变量x、y分别表示x和y坐标,2个构造器Point()和Point( intx0,y0),以及一个movePoint (int dx,intdy)方法实现点的位置移动,创建两个Point对象p1、p2, 分别调用movePoint方法后,打印pl和p2的坐标 阅读全文
摘要:
1.编写一个简单程序,要求数组长度为5,静态赋值10,20,30,40,50,在控制台输出该数组的值。 public class test11 { /** * @param args */ public static void main(String[] args) { // TODO Auto-g 阅读全文
摘要:
1.使用for循环计算1-100的和,除了以3结尾的那些数 public class test11 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub i 阅读全文