摘要: java string和集合类有contains方法,可以判断集合或string内是否有该字符串 startsWith() 方法用于检测字符串是否以指定的前缀开始。 方法 public boolean startsWith(String prefix, int toffset) public boo 阅读全文
posted @ 2021-11-24 21:32 {hunter}ZY 阅读(22) 评论(0) 推荐(0)
摘要: package tutor21; import java.util.ArrayList; public class Client { public static void main(String args[]) { MySubject subject = new Stock(); MyObserve 阅读全文
posted @ 2021-11-24 18:26 {hunter}ZY 阅读(32) 评论(0) 推荐(0)