For this Question: Given an integer N, your task is to print all the even integer from 1 to N.<b>User task:</b>
Since this will be a functional problem, you don't have to take input. You just have to complete the functions <b>For_Loop()</b> that takes the integer n as a parameter.

</b>Constraints:</b>
1 <= N <= 100

<b>Note:</b> 
<i>But there is a catch here given user function has already code in it which may or may not be correct, now you need to figure out these and correct if it is required</i>Print all the even numbers from 1 to n.Sample Input:-
5

Sample Output:-
2 4

Sample Input:-
6

Sample Output:-
2 4 6, I have written this Solution Code:  public static void For_Loop(int n){
           for(int i=2;i<=n;i+=2){
           System.out.print(i+" ");
       }
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?