Since java-8 you can now use Streams. ... String[] values = {"AB","BC","CD","AE"}; boolean contains = Arrays.stream(values).anyMatch("s"::equals);. To check ...
確定! 回上一頁