摘要: import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); while(sc.hasNext()){ String num = sc.nextLine(); ... 阅读全文
posted @ 2019-11-02 20:47 渺小的我 阅读(9025) 评论(0) 推荐(0)
摘要: 1.substring(int indx) 直接返回从角标为indx的字符开始一直到结尾的字符串,"abcde".substring(2) 返回的是 "cde"。 2.substring(int start,int end) 截取角标在 [start,end) 区间的字符串,注意是左闭右开的。 ①e 阅读全文
posted @ 2019-11-02 20:24 渺小的我 阅读(3492) 评论(0) 推荐(0)