标签:
package zhiZuo4; public class Last { public static void main(String[] args) { String A = "jasd"; String C = A.replace("sd","0"); int D = C.length(); System.out.println((C.lastIndexOf("0")==(D-1))); } }
标签:
原文地址:http://www.cnblogs.com/zhaoxifei/p/5052840.html