-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfile.java
More file actions
48 lines (26 loc) · 813 Bytes
/
file.java
File metadata and controls
48 lines (26 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
public class file {
void main() {
// Entier
// 8 bits : de -128 à 127
byte a = 127;
// 16 bits : -32768 à 32767
short b = 3333;
// 32 bits : -2147483648 à 2147483647
int c = 2222222;
// 64 bits : -9223372036854775808 à 9223372036854775807
long d = 33L;
// Nombre à virgule
// 32 bits : 1.401e-045 à 3.40282e+038
float e = 1.3f;
// 64 bits : 2.22507e-308 à 1.79769e+308
double f = 2.3;
// Caractères
char g = 'g';
// Chaines de caractères
String h = g + "chaine"; // new String("chaine")
// Booléen
boolean i = false;
// Inférence
var avecInference = "Quand même une chaîne de caractères";
}
}