摘要:
一、去除ArrayList中的重复元素 public class Person { public String name; public int age; public Person(String name,int age){ this.name = name; this.age = age; } 阅读全文
摘要:
public class StringBuilderTest { public static void main(String[] args) { int arr[] = {3,1,5,6,7,9,2}; String s = arryToString(arr); System.out.printl 阅读全文
摘要:
一、字符串数组排序 1.给定一个字符串数组,按照字典顺序进行从小到大排序。 例如:将: {"nba","abc","cba","zz","ihg","hehe"};中的字符串按照字典顺序大小排列。 public class StringTest { public static void main(S 阅读全文