For this Question: You are given a large integer N. Find the sum of its digits. Eg:- if the integer is 1234, the answer is 1+2+3+4=10.The first and only line of input contains the integer N.

Constraints
The number of digits in N won't exceed 100000.Output a single integer, the sum of digits in N.Sample Input
1234

Sample Output
10

Sample Input
11111111111111111111

Sample Output 
20, I have written this Solution Code: import java.io.*;
import java.util.*;



class Main {
	public static void main (String[] args)throws IOException {

					  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
					  String str=br.readLine();
					  int sum=0;
					  for(int i=0;i<str.length();i++){
						  char c=str.charAt(i);
						  int k=c-'0';
						  sum+=k;}
						  System.out.println(sum);


	}
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?