最佳答案
我想检查一个 String 是否按照这个顺序包含单词“ store”、“ store”和“ product”,不管它们之间有什么。
我尝试使用 someString.contains(stores%store%product);
和 .contains("stores%store%product");
我是否需要显式声明一个正则表达式并将其传递给方法,或者我根本不能传递正则表达式?