The method toList() is undefined for the type Stream

The method toList() is undefined for the type Stream   (JDK16)

The method toList() is undefined for the type Stream_第1张图片

The method toList() is undefined for the type Stream_第2张图片

The method toList() is undefined for the type Stream_第3张图片

    default List toList() {
        return (List) Collections.unmodifiableList(new ArrayList<>(Arrays.asList(this.toArray())));
    }

The method toList() is undefined for the type Stream_第4张图片

The method toList() is undefined for the type Stream_第5张图片

你可能感兴趣的:(java,JDK16)