Search This Blog

Showing posts with label letters. Show all posts
Showing posts with label letters. Show all posts

Thursday, 16 February 2012

Java Programs (Printing out ASCII Codes of letters)


class asciiCodes
    {
        public static void main()
        {
            char i;
            char j;
            for(i='a';i<='z';i++)
        {
            System.out.println(i+"       "+(int)i); // The (int) part converts letters to asciiCode
        }
    }
}