09 2019 档案

摘要:1. testrandom public class test2{ public static void main(String[] args) { int[] n=new int [1001]; n[0]=1; for(int i=0;i<1000;++i){ n[i+1]=(16807*n[i] 阅读全文
posted @ 2019-09-27 18:55 你的深渊 阅读(116) 评论(0) 推荐(0) 编辑
摘要:判断字符串是否回文 设计思想 利用递归,每次返回长度减二的字符串,最终返回结果 源程序代码 import java.util.Scanner; public class palindrome { static int palin(String s, int length) { int zt = 0; 阅读全文
posted @ 2019-09-25 16:29 你的深渊 阅读(108) 评论(0) 推荐(0) 编辑
摘要:1. EnumTest.java public class EnumTest { public static void main(String[] args) { Size s=Size.SMALL; Size t=Size.LARGE; //s和t引用同一个对象? System.out.print 阅读全文
posted @ 2019-09-18 09:33 你的深渊 阅读(160) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2019-09-12 13:17 你的深渊 阅读(5) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示