addition of 2 int values in java collections code example Example: how to add integers in java int a; int b; a+b = int c