BASIC CONSTRUCTS

19. How to convert char to int

            class CharToInt{
                public static void main(String st[]){
                    char c = 'm';
                    int num = (int)c;
                    System.out.println("Converted int : "+num);
                }
            }
        

OUTPUT

            Converted int : 109