FreeBASIC <-> Java | Automatic variable declaration
FreeBASIC Used keywords: = as dim
Dim =, Dim As =
Description
Dim name = par2
Dim name = init_value
Dim name As type = init_value
Data:
- name -
Input
- type - data types
- init_value - Expressions
Examples
FreeBASIC
Automatic variable declaration the possible of use:xmin = -128
ymax = 127
Dim x As byte= -5 ' x = -5
Dim y As byte= -(15 mod 4) ' y = -3
y = CByte((x * y)) ' z = 15
.
Java Used keywords: =
automatic variable declaration
Description
type name =init_value;
type name =init_value , name = init_value;
Data:
- name -
Input
- type - data types
- init_value - Expressions
Examples
Java
Automatic variable declaration the possible of use:xmin = -128; ymax = 127;
byte x= -5; // x = -5
byte y = -(15 % 4); // y = -3
y = (byte)(x * y); // z = 15
Automatic variable declaration in another programming language:
Differences to: