2个回答
展开全部
public class Test { public Test(){ super(); } protected static int[] array=new int[5]; public static final String name="admin"; /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub double result=getPowers(100); System.out.println(result); } static double getPowers(int param) { if (param==1) { return 1; } return param*getPowers(param-1); } private static void fillArray(int[] array){ for (int i = 0; i < array.length; i++) { array[i]=i+1; } } public static boolean isLeepYear(int year){ if ((year%4==0 && year%100!=0) || year%400==0) { return true; } else { return false; } } }
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询