Graderpractice for programmers

254275 OOP - Pre Mini Test 1 2/2563

Awaiting submission
Read in an integer, multiply it by 9 and print out the result.
Awaiting submission
Read in a number. If the received number is an even number, then find The sum of the factotial divided by 2. If the accepted numbers are odd find the total of sum mulitiply by 2
Awaiting submission
Write a program input one integer and print out Triangle
Awaiting submission

Write a method to the sum of an array of integers.

Template

class TaskA {

    public static void main(String[] args) {
        int[] numbers = intArray();
        int result = sum(numbers);
        System.out.println(result);
    }

    public static int sum(int[] numbers) {
        // TODO: Your answer here
    }

}

You will require Input.java for easy array input.