В начале скачивал отсюда:
https://www.oracle.com/java/technologies/downloads/#jdk24-windows
Потом ещё и отсюда:
https://www.java.com/ru/download/manual.jsp
-------------
> java
Usage: java [java options...] [application arguments...]
Where is one of:
to execute the main method of a compiled main class
-jar .jar to execute the main class of a JAR archive
-m [/] to execute the main class of a module
.java to compile and execute a source-file program
Where key java options include:
--class-path
where is a list of directories and JAR archives to search for class files, separated by ";"
--module-path
where is a list of directories and JAR archives to search for modules, separated by ";"
-version
to print product version to the error stream and exit
For additional help on usage: java --help
For an interactive Java environment: jshell
---------------
> java -version
java version "24.0.1" 2025-04-15
Java(TM) SE Runtime Environment (build 24.0.1+9-30)
Java HotSpot(TM) 64-Bit Server VM (build 24.0.1+9-30, mixed mode, sharing)
---------------
java --help - много выдаёт
javac - вероятно что это компилятор - выдаёт тоже много
------------
public class u {
public static void main (String[] args) {
System.out.print("Helloжжжжж, world!");
}
}
------------
String bigString = "Текст,\n" +
"расположенный\n" +
"на нескольких строках\n";
---------
Другого решения я пока не нашёл