Add Two Numbers
Learn how to add two numbers in Java:
Example
int x = 5;
int y = 6;
int sum = x + y;
System.out.println(sum); // Print the sum of x + y
Learn how to add two numbers in Java:
int x = 5;
int y = 6;
int sum = x + y;
System.out.println(sum); // Print the sum of x + y