long > int > short > byte

This commit is contained in:
Sage Burger 2023-08-22 10:26:08 +02:00
parent d29f587353
commit b59fe4b9a1
2 changed files with 6 additions and 0 deletions

Binary file not shown.

View file

@ -1,5 +1,11 @@
public class Testcode { public class Testcode {
public static void main(String[] args) { public static void main(String[] args) {
int a = 1, b = 2, c = 3, d = 4, e = 5, f = 6, g = 7, h = 8;
int sum = a + b + c + d + e + f + g + h;
System.out.println(sum);
byte x = 127;
} }
} }