摘要: 1 1 import java.awt.Point; 2 2 3 3 class Box 4 4 { int x1 = 0; 5 5 int y1 = 0; 6 6 int x2 = 0; 7 7 int y2... 阅读全文
posted @ 2015-10-25 20:56 lubocsu 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 1 public class TestReturn 2 { 3 4 public static void main(String args[]) 5 { 6 TestReturn t = new TestReturn(); 7 t.te... 阅读全文
posted @ 2015-10-25 17:45 lubocsu 阅读(9075) 评论(0) 推荐(0) 编辑
摘要: 1 public class ConverTo 2 3 { public static void main(String [] args) 4 { String numberIn =args[0]; 5 convertNum(numberIn);... 阅读全文
posted @ 2015-10-23 15:29 lubocsu 阅读(2043) 评论(0) 推荐(0) 编辑
摘要: class calendar { public static void main(String[]args) { int yearIn ; yearIn = Integer.parseInt(args[0]); showDays(yearIn); }... 阅读全文
posted @ 2015-10-23 00:29 lubocsu 阅读(218) 评论(0) 推荐(0) 编辑
摘要: public class demo { public static void main(String[] args) { boolean examIsDone = true; int score = 65; if (examIsDone) if (score >= 90)System.out.pri... 阅读全文
posted @ 2015-10-22 23:34 lubocsu 阅读(2580) 评论(0) 推荐(0) 编辑
摘要: 这是一个非常常见的异常,从名字上看是数组下标越界错误,解决方法就是查看为什么下标越界。下面是一个错误示例:Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2at test4.State.nextStates(S... 阅读全文
posted @ 2015-10-22 12:11 lubocsu 阅读(4971) 评论(0) 推荐(0) 编辑
摘要: 根据JavaScriptLanguageSpecification的定义,表达式A=B的执行步骤,简单地说,就是:1.对等号左边的表达式A进行计算,算出最终的结果,必须是参照或变量;2.对等号右边的表达式B进行计算,得到返回值;3.把第2步得到的右边的返回值,赋予第一步中得到的左边的参照或变量。表达... 阅读全文
posted @ 2015-10-22 09:29 lubocsu 阅读(1757) 评论(0) 推荐(0) 编辑
摘要: class HalfDollars { public static void main(String [] arguments) { int[] denver = {1_900_000,1_700_000,1_700_000 }; int[] p... 阅读全文
posted @ 2015-10-14 21:42 lubocsu 阅读(1103) 评论(0) 推荐(0) 编辑