Go to Top

Saturday, 29 October 2011

To print all the keyboard characters using ASCII code

Question 66 : Write a program in Java to all the keyboard characters using ASCII codes.

Java Program :

class all_ascii
{
 static void print()
 {
     for(int i=0;i<256;i++)
     System.out.print((char)i+" - "+i+"\n");
    }
}

No comments:

Post a Comment

ShareThis