Posts by Alberto • 91 points
1 post
-
7
votes2
answers406
viewsQ: Why doesn’t Java add up the numbers in expression?
public class Teste { public static void main(String[] args) { int x = 0; int y = 1; int z = 2; System.out.print(x + y + z); } } This returns: 3 public class Teste { public static void main(String[]…