摘要:
import java.util.ArrayList; import java.util.Iterator; public class arrayList { public static void main( String[] args ) { ArrayList<String> list = ne 阅读全文
posted @ 2021-02-21 18:53
小白龙白龙马
阅读(189)
评论(0)
推荐(0)
摘要:
import java.util.ArrayList; import java.util.List; //引入的2个包 public class list4 { public static void main( String[] args ) { List list = new ArrayList( 阅读全文
posted @ 2021-02-21 16:51
小白龙白龙马
阅读(699)
评论(0)
推荐(0)
摘要:
获取时间戳 System.out.println(System.currentTimeMillis()); 执行结果:1612613001108 输出时间 Date date = new Date(); System.out.println(date); System.out.println(Str 阅读全文
posted @ 2021-02-21 16:45
小白龙白龙马
阅读(181)
评论(0)
推荐(0)
摘要:
获取字符串长度 String st = "bacdeg"; System.out.println(st.length()); System.out.println("bacdeg".length()); 执行结果: 6 6 判断字符串中是否包含有某个字符 String s7 = "ageheafeR 阅读全文
posted @ 2021-02-21 16:44
小白龙白龙马
阅读(91)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2021-02-21 15:24
小白龙白龙马
阅读(208)
评论(0)
推荐(0)