在沉默了2个星期后,迎来了面试.那天没有烈日,温度也有所下降.但是自己也许是长时间躲在屋子里的原因吧,答题时有些力不从心,都有思路就是不愿仔细去想.
编程题很多 其中去素数的
/**
*
*/
package com.sushu;
import javax.swing.JOptionPane;
import sun.misc.Sort;
/**
* @author wee
* 2010-7-7
*/
public class PrimeTest {
public static boolean checkPrime(int num) {
if (num == 1 || num == 2)// 1和2是素数
return true;
for (int i = 2; i