My First Java Program


At the moment we are learning Java at Hull College and the picture above is the text from my first program.

It was written using an IDE (Integrated Design Environment) and although I am new to Java, I found that IntelliJ was a fairly easy to use IDE.

It uses the Scanner class from the API (Application Program Interface) library which basically means that it uses code pre-written to request an input from the user and then with the use of Boolean, it will check to see if the number entered is the same number as the random number the program created. If it is not correct then it will use the IF and ELSE statements to tell the user whether the number they entered is either too high or too low.

Share Button

Leave a Reply

Your email address will not be published.