Add static import for simple IO
Add a static import for simple IO methods.
Java 25 introduces simple IO methods, such as IO.println()
and readln()
to make interacting with the console more convenient. To use these methods in a compact source file, you don't need to add an import. However, you can add a static import the java.lang.IO
class if you prefer. Invoke Context Actions ⌥⏎ (macOS) / Alt+Enter (Windows/Linux) on the method and select the option Add on-demand static import for java.lang.io
.