10 2015 档案
摘要: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...
阅读全文
摘要:1 public class TestReturn 2 { 3 4 public static void main(String args[]) 5 { 6 TestReturn t = new TestReturn(); 7 t.te...
阅读全文
摘要:1 public class ConverTo 2 3 { public static void main(String [] args) 4 { String numberIn =args[0]; 5 convertNum(numberIn);...
阅读全文
摘要:class calendar { public static void main(String[]args) { int yearIn ; yearIn = Integer.parseInt(args[0]); showDays(yearIn); }...
阅读全文
摘要:public class demo { public static void main(String[] args) { boolean examIsDone = true; int score = 65; if (examIsDone) if (score >= 90)System.out.pri...
阅读全文
摘要:这是一个非常常见的异常,从名字上看是数组下标越界错误,解决方法就是查看为什么下标越界。下面是一个错误示例:Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2at test4.State.nextStates(S...
阅读全文
摘要:根据JavaScriptLanguageSpecification的定义,表达式A=B的执行步骤,简单地说,就是:1.对等号左边的表达式A进行计算,算出最终的结果,必须是参照或变量;2.对等号右边的表达式B进行计算,得到返回值;3.把第2步得到的右边的返回值,赋予第一步中得到的左边的参照或变量。表达...
阅读全文
摘要:class HalfDollars { public static void main(String [] arguments) { int[] denver = {1_900_000,1_700_000,1_700_000 }; int[] p...
阅读全文

浙公网安备 33010602011771号