For this Question: Given an array "a" of non-Integers, check if any integer in the array is less than k.The first line contains two Integers n and k, which is the size of the array and k.
The second line contains n space- separated Integers, that is array elements.

<b>Constraints</b>
1 &le; n &le; 100
1 &le; k &le; 100
1 &le; a[i] &le; 100Print "true" if any element of array is less than k, otherwise "false".Sample 1:
Input: 
4 3
1 1 4 8
Output:
true
Explanation:
Both Integers at Indices 0 and 1 are less than k=3., I have written this Solution Code: import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.*;
public class Main {
    public static boolean checkIfAnyLessThanK(int[] a, int k) {
        for (int i = 0; i < a.length; i++) {
            if (a[i] < k) {
                return true;
            }
        }
        return false;
    }



    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        // String s=sc.nextLine();
        int n=sc.nextInt();
        int k=sc.nextInt();
        sc.nextLine();
        assert n>=1&&n<=100 : "Invalid Input";
        assert k>=1&&k<=100 : "Invalid Input";
        int a[]=new int[n];
        for(int i=0;i<n;i++){
            a[i]=sc.nextInt();
            assert a[i]>=1&&a[i]<=100 : "Invalid Input";
        }
        System.out.print(checkIfAnyLessThanK(a,k));
        
    }
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?