Welcome to the first exercise in Object-Oriented Programming. See the basic information on how exercises are organized on the Exercises web page.
You will need the following tools:
The Eclipse environment is recommended. In the next exercise, you will also try the basic tools for working with Java from the command prompt.
Make an empty Java project in Eclipse. If you work on a CPU computer, create your own folder in a folder to which you have write access, probably C:\work. Add the HelloWorld.java file to the project and compile it and run it. When creating the project, make sure that the Create module-info.java file option is unchecked. Also, remove the name introduced in the field marked as Package. Packages and modules are used as higher level units of code organization and they are of importance in larger programs.
Math.random();Assign the result adjusted accordingly (and converted into an int) to your own variable.