截取字符串


String xx="2.1.3.5.";

int index= xx.lastIndexOf(".");

String x=xx.substring(0,index);

原文地址:https://www.cnblogs.com/proli/p/5167369.html