Java判断包含某个字符contains方法

 时间:2024-10-28 19:43:39

1、烂瘀佐栾这是把数据库里面的数据导出到excel中显示2、代码如下if (null != ar.getCbXz()){ 艘早祓胂 String Str = null; String Str1 = null; String Str2 = null; String Str3 = null; if(ar.getCbXz().contains("1")){ Str1 = "交强险"; }else{ Str1 = ""; } if(ar.getCbXz().contains("2")){ Str2 = "车损险"; }else{ Str2 = ""; } if(ar.getCbXz().contains("3")){ Str3 = "三责"; }else{ Str3 = ""; } Str = Str1+Str2+Str3; sheet.addCell(new Label(10, i + 2, Str,contentStyle));// 承保险种 }else{ sheet.addCell(new Label(10, i + 2,"",contentStyle)); }

Java判断包含某个字符contains方法
  • TortoiseSVN客户端如何进行中文配置?
  • 各种netstat命令的用法
  • 局域网中如何设置代理地址实现上网
  • oracle 11g 登陆方式
  • python如何查看系统默认的关键词
  • 热门搜索
    渭南旅游景点大全 埃及旅游最佳时间 崇武古城旅游攻略 赵县旅游景点大全 内蒙古旅游注意事项 旅游年票官网 大明山旅游攻略 互助旅游 海南旅游介绍 春节旅游推荐