For this Question: Given a non- negative Integer x, print the sum of digits of x.The first line contains 1 integer x.

<b>Constraints</b>
0 &le; x &le; 10<sup>5</sup>Print the sum of digits of this number x.Sample Input 1 :
20

Sample Output 1 :
2

Explanation 1:
sum of digits = 2+0 = 2., I have written this Solution Code: import java.util.*;
import java.lang.*;
import java.io.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int sum=0;
        while(n>0){
            sum+=(n%10);
            n/=10;
        }
        System.out.println(sum);
        // if(pd%20==0)
        //     System.out.println(true);
        // else
        //     System.out.println(false);
        
        
       
    }
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?