摘要: 常用到的Button链接,代码如下:1.链接到某页<input type="button" name="Submit" value="确定" class="btn" onclick="location.href='filename.html'" />2.返回(等同后退) <input name="Submit2" type="button" class="btn" onclick="locat 阅读全文
posted @ 2012-11-08 15:40 hlb 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 1 public class StringChar { 2 public static void main(String[] args){ 3 String s="abcdef"; 4 char[] x=s.toCharArray(); //String转为char[]数组 5 String z=String.valueOf(x); //char[]数据转为String 6 System.out.println(x); 7 8 for(char v:x) 9 ... 阅读全文
posted @ 2012-11-08 15:25 hlb 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 1 public class Test { 2 static void list(Integer[] i) { 3 for (Integer q : i) { 4 System.out.print(q + "*"); 5 } 6 System.out.println(); 7 } 8 static void list(String...args){ 9 for (String q : args) {10 System.out.print(q + "*");1... 阅读全文
posted @ 2012-11-08 15:22 hlb 阅读(252) 评论(0) 推荐(0) 编辑