java programs for addition of two numbers code example Example: how to add integers in java int a; int b; a+b = int c