In Java 11 there are some new String methods - strip(), stripLeading() etc. But it is not possible to use them in Android Studio Arctic Fox - when I try to type them, they aren't recognized:
I have Java 11 installed, in Settings the embedded JDK version 11.0.10 is specified:
In the build.gradle file, in compileOptions, I have changed to JavaVersion.VERSION_11:
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
Why aren't the new methods available?