06 - Primitive Data Types | Java Tutorials

preview_player
Показать описание
Learn how to initialize / store data in your variables as well as how to use the 8 primitive data types in java.

| Language
Java (.java /.class)

| Code Example
Рекомендации по теме
Комментарии
Автор

Also if you want to declare a bunch of variables at once that are the same type you can do that using commas:
int num1, num2, num3;

now you have three integer variables that you can use later:
num2 = 32;
num1 = -2;
etc..

SimplyCoded
welcome to shbcf.ru