Add Two Numbers - Java Quiz Question


Write a program to add two numbers.



class AddNumbers
{
    public static void main(String s[])
    {
        System.out.println("Sum of 21 and 18 is " + sum(21, 18));

    }


    public static int sum(int a, int b)
    {
        int result = 0;
        return result;
    }

}