截后
java中一句话取到用split()截后的最后一个值
java中⼀句话取到⽤split()截后的最后⼀个值java中split的用法public static void main(String[] args){String unSplit = "1,2,3,4,5,6,7";//根据长度取数组的最后⼀个元素System.out.println(unSplit.split(",")[unSplit.split(",").length-1]);}结果为:...
java中⼀句话取到⽤split()截后的最后⼀个值java中split的用法public static void main(String[] args){String unSplit = "1,2,3,4,5,6,7";//根据长度取数组的最后⼀个元素System.out.println(unSplit.split(",")[unSplit.split(",").length-1]);}结果为:...