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);
}
}
In questa pagina del sito puoi guardare il video online #4 | Java integer variables | Java tutorial for beginners della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Neil Gillies | Coding & Music 21 agosto 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 447 volte e gli è piaciuto 8 spettatori. Buona visione!