+ 1
What is the meaning of vel in java
5 ответов
+ 3
int is the datatype: Integer
val (shortcut for value) is a variable name.
int val = 10 + 5 - 2 means you assign the value 10 + 5 - 2 to the integer variable val.
Doing the math: val = 13
You can add a print statement to see it.
System.out.println(val);
+ 2
Okay thanks to anyone
I do understand now🙏
+ 1
Can you give a link or a code where you have seen this word?
I only can say that vel is not a keyword. Maybe it is a variable name.
0
The maths operators
0
Just like in algebra, you can use both of the operations in a single line. For example: int val = 10 + 5 - 2
I mean, someone should teach me this statement I don't understand it well