Java Exercise 12 / 15

Java Methods

Medium 18 points

Create a method that adds two numbers and returns the result.

Java methods organize reusable code. public static int methodName(int a, int b) { return value; } defines a method.

Well done! 🎉
Your answer is correct! You earned 18 points.
Your code Java
Result