This video shows you how to get started with some very simple variables (Integers). Variables allow you to manage the data used in your code. Here is the code used in this video:
public class Main {
public static void main(String[] args) {
// declare first number
int firstNum = 14;
// declare second number
int secondNum = 21;
// declare result variable and multiply values
int result = (firstNum * secondNum);
// display the result to the console
System.out.println("The result was: " + result);
}
}
On this page of the site you can watch the video online #4 | Java integer variables | Java tutorial for beginners with a duration of hours minute second in good quality, which was uploaded by the user Neil Gillies | Coding & Music 21 August 2023, share the link with friends and acquaintances, this video has already been watched 447 times on youtube and it was liked by 8 viewers. Enjoy your viewing!