import java.util.Arrays;

public class Num3 {


    public static void main(String[] args) {

        int 영 = 0; int 일 = 0; int 이 = 0; int 삼 = 0; int 사 = 0; int 오 = 0; int 육 = 0;int 칠 = 0; int 팔 = 0;   int 구 = 0;         

        for(int i=1; i<1001; i++)

        {

            String n =  Integer.toString (i);

            for(int j = 0; j<n.length(); j++)

            {

                char m = n [j];

                if (m == '1')

                    일 += 1;

                 if (m == '2')

                    이 += 1;

                 if (m == '3')

                    삼 += 1;

                 if (m == '4')

                    사 += 1;

                 if (m == '5')

                    오 += 1;

                 if (m == '6')

                    육 += 1;

                 if (m == '7')

                    칠 += 1;

                 if (m == '8')

                    팔 += 1;

                 if (m == '9')

                    구 += 1;

                 if (m == '0')

                    영 += 1;

            }

        }

       System.out.println("0 : " + 영);

       System.out.println("1 : " + 일);

       System.out.println("2 : " + 이);

       System.out.println("3 : " + 삼);

       System.out.println("4 : " + 사);

       System.out.println("5 : " + 오);

       System.out.println("6 : " + 육);

       System.out.println("7 : " + 칠);

       System.out.println("8 : " + 팔);

       System.out.println("9 : " + 구);


    }

이게 원래 c#으로 적혀있던 코드를 내가 자바에서도 해보고 싶어서 옮겨서 수정하는데  char m = n [j]; 이부분을 어떻게 바꿔야 실행이 되는지 모르겠음