check if is array in java code example Example: arrays .contains methof private static final Set<String> VALUES = Set.of( "AB","BC","CD","AE" );