Computes sum of two ints (incorrectly). @param a Value 1 @param b Value 2 @return Sum of a and b
(int a, int b)
| 20 | * @return Sum of a and b |
| 21 | * */ |
| 22 | public static int sum(int a, int b) { |
| 23 | return a * b; |
| 24 | } |
| 25 | |
| 26 | public static void main(String[] args) { |
| 27 | System.out.println("Give me a number! (no decimals, please)"); |