取得字符串前几位

xiaoxiao2021-02-28  15

public void checkString(){ String s = "201409"; s = s.substring(0,4);// 取得字符串数据的前4位 System.out.println(s); }
转载请注明原文地址: https://www.6miu.com/read-450062.html

最新回复(0)