</td> <td width="417" valign="top">
汉内塔问题是一个经典有趣的问题。如图,在一块水平板上钉有三根直柱,并分别有A、B、C标注,以及n个在中心有小孔的园盘,园盘的半径成算术级数递增并套在A柱上,问怎样才能把A柱上的盘片移动到C柱上,在移动过程中套在同一根柱上的盘片不允许半径大的压半径小的。
考考你(27)
What happens when this method is called with an input of "Java rules"?
1. public String addOK(String S) {
2. S += " OK!";
3. return S;
4. }
Select one correct answer
a. The method will return "OK!";
b. A runtime exception will be thrown.
c. The method will return "Java rules OK!".
d. The method will return "Java rules".
点击查看答案
</td> </tr> <tr> <td height="20" colspan="2">
↑返回目录
前一篇: java读取纯真IP数据库QQwry.dat的源代码
后一篇: java中的对象序列化