java
spring1123
这个作者很懒,什么都没留下…
展开
-
java中的split
在JAVA中, 在使用String.split方法分隔字符串时,但要注意有些字符不能直接用的,分隔符如果用到一些特殊字符,比如 "| " ,"*",等否则会出现问题,以前刚用时就因为这个问题而看了半天的代码。 public String[] split(String regex) Splits this string around matches of the given regular exp...2008-09-16 11:21:50 · 253 阅读 · 0 评论 -
冒泡排序
public class Sort { public static void main(String args[]) { int a[]=new int[args.length]; for(int i=0;i2008-04-10 15:46:37 · 73 阅读 · 0 评论