一: double a = 23.36; String b = String.valueOf(a); String d = b.substring(, b.lastIndexOf("."));
System.out.println(d); 测试结果是: 二: String s="信贷业务-快速贷/快逸贷/快易还,";
String d=s.substring(, s.lastIndexOf(","));
System.out.println(d); 测试结果:信贷业务-快速贷/快逸贷/快易还
一: double a = 23.36; String b = String.valueOf(a); String d = b.substring(, b.lastIndexOf("."));
System.out.println(d); 测试结果是: 二: String s="信贷业务-快速贷/快逸贷/快易还,";
String d=s.substring(, s.lastIndexOf(","));
System.out.println(d); 测试结果:信贷业务-快速贷/快逸贷/快易还