int->string
第一种方法:s=i+""; 第二种方法:s=String.valueOf(i);
string->int
第一种方法:i=Integer.parseInt(s); 第二种方法:i=Integer.valueOf(s).intValue();
如何判断list是否为空
if(null == list || list.size() ==0 ){
//为空的情况
}else{
//不为空的情况
}
HTML中按钮赋予按钮跳转链接
<input type="button" name="button2" id="button2" value="删除" οnclick="javascrtpt:window.location.href='http://blog.sina.com.cn/mleavs'" />