【正文】
blic class Test { public static void main(String[] args) { int[][] num1 = new int[2][3]。 num1[1][0] = 78。 i++) { for (int j = 0。 } int[][] num2 = new int[][] { { 1, 2, 3 }, { 7, 8 } ,{ 9 } }。 j num2[i].length。 int a[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }。 (s= + s)。 }}class A extends B { int a。 }}public class Test { public static void main(String[] args) { A obj = new A(5, 10)。 } } static void method() { try { wrench()。 } (F)。 ch113。2: public class SortArray {3: public static void main(String args[]) {4: String[] str = {size, abs,length,class}。 i++)7: (str[i]+ )。}interface AsSuper{ void x()。 ()。 } }根據(jù)以上這段程序,回答問題:(1)哪幾個(gè)類是抽象類,寫出類名。class A{int a=1。 String d=Java program.。()。 i = 100。import .*。 i n。 i n。 i n。public class Test4{ public static void main(String args[]) { Set set = new TreeSet()。 (new Integer(5))。 while (()) { (() + )。3: import .*。||()==39。g39。14: else if(()==39。)15: clr=。 21: }22: }(1)程序第11行實(shí)現(xiàn)的功能是什么?返回引發(fā)鍵盤事件的按鍵所對(duì)應(yīng)的Unicode字符,如果為大寫R或小寫r則讓變量clr等于Color類red方法。(3)定義mul()方法,用來計(jì)算兩數(shù)(a,b)之積。 } int sub() { return (a b)。 } public static void main(String[] args) { kk rect = new kk()。 (sub= + ())。 import 。 i 10。j++) ((j))。public class Sum { public static void main(String[] args) { int s = 1。 } (s)。 BufferedReader br=new BufferedReader(in)。i()。amp。 }else if((i)=39。(i)=39。amp。){ nChar++。 (其它字符:+nOther)。 } (字母:+nChar)。(i)=39。||(i)=39。amp。939。039。 String str=()。public class Test11 { public static void main(String[] args) throws IOException { int nDig=0,nChar=0,nOther=0。i=10。 while(()){ (())。 for(int j=0。public class Test { public static void main(String[] args) { ArrayList list = new ArrayList()。 (div= + ())。 = 6。 } int div() { if (b != 0) return (a / b)。 public class kk { int a, b。如果敲擊鍵盤的‘b’鍵,有什么結(jié)果?六、程序設(shè)計(jì)題1. 設(shè)計(jì)一個(gè)Calculator類,并完成下列的各方法的程序設(shè)計(jì)并測(cè)試: (1)定義add()方法,用來計(jì)算兩數(shù)(a,b)之和。 18: setBackground(clr)。||()==39。G39。)11: clr=。6: public void init() {7: addKeyListener(8: new KeyAdapter() {9: public void keyTyped( KeyEvent e ) {10: