摘要:
package interview; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; import java.util.List; /** * * @author * 计算数组中有几对相反数 * */ public class ListSort { pub... 阅读全文
posted @ 2018-07-26 12:17
PyJava老鸟
阅读(919)
评论(0)
推荐(0)
摘要:
package interview; /* * 判断字符串括号是否闭合 */ public class StringClose { public static void main(String[] args) { String s = "sd{78]sdf[}sddf"; String s1="{1sdf}[sdf][[(sdf)]]"; System.out.printl... 阅读全文
posted @ 2018-07-26 09:44
PyJava老鸟
阅读(1727)
评论(0)
推荐(0)
摘要:
package test; import java.io.File; public class ShowDirectoryAndFiles { private int fileLevel;//文件所在的层数 public String createPrintStr(String name,int level) { String printStr = "";//输出的前缀 for... 阅读全文
posted @ 2018-07-26 09:24
PyJava老鸟
阅读(489)
评论(0)
推荐(0)
摘要:
package interview; public class SubStringTest { public static void main(String[] args) { String s="1234"; for(int i=s.length();i>0;i--) { for(int j=0;i+j<=s.length();j++) { System.out.p... 阅读全文
posted @ 2018-07-26 09:21
PyJava老鸟
阅读(663)
评论(0)
推荐(0)
摘要:
package interview; /* * 数组元素先升后降找出最大值 */ public class FirstAESCLastDESC { public static void main(String[] args) { int[] arrays = {1,2,5,9,5,4}; System.out.println(arrays[searchMax(arrays... 阅读全文
posted @ 2018-07-26 08:49
PyJava老鸟
阅读(1235)
评论(0)
推荐(0)
浙公网安备 33010602011771号