Java笔记

xiaoxiao2025-11-14  14

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'" />

 

转载请注明原文地址: https://www.6miu.com/read-5039646.html

最新回复(0)