For this Question: Since area of rectangle can be slightly easy, you need to calculate the area of the trapezium. You are given the lengths of the parallel sides of the trapezium and its height (distance between the parallel sides).The first and the only line of input contains three integers lengths of parallel sides followed by the height.

Constraints
1 <= side1, side2 <= 100
2 <= height <= 100
height is always divisible by 2Output a single integer, the area of the trapezium.
Sample Input
3 4 2

Sample Output
7

Explanation: The area of the given trapezium is 7., I have written this Solution Code: import java.io.*;
import java.util.*;
class Main {
    public static void main(String[] args)
    throws IOException
    {
        BufferedReader bi = new BufferedReader(
        new InputStreamReader(System.in));

        int num[] = new int[3];
        String[] strNums;

        strNums = bi.readLine().split(" ");

        for (int i = 0; i < strNums.length; i++) {
            num[i] = Integer.parseInt(strNums[i]);
        }

        int base_1 = num[0];
        int base_2 = num[1];
        int height = num[2];

        int area = ((base_1 + base_2) * height) / 2;

        System.out.println(area);
    }
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?