i 绝望

依然

Miss Lang
  2013年12月5日
摘要: 总结:arraycopy注意数组定义的长度。不足会补0package clientFrame;//数组的复制arraycopy()public class Xiang { public static void main(String[] args) { int a[] = new int[] { 2, 3, 4, 6, 7 }; int b[] = new int[3];// 位数 System.arraycopy(a, 0, b, 0, 3); for (int i = 0; i < b.length; i++) { System.out.print(b[i] + " &qu 阅读全文
posted @ 2013-12-05 07:46 juewang 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 总结:反转注意for循环里面的变化package clientFrame;//字符串反转public class we { public static void main(String[] args) { String s = "A quick brown fox jumps over the lazy dog."; System.out.println("源字符串是:" + s); System.out.print("反转后的字符串是:"); for (int i = s.length(); i > 0; i--) { Sys 阅读全文
posted @ 2013-12-05 07:32 juewang 阅读(748) 评论(0) 推荐(0) 编辑

绝望依然

Miss Lang