Write a Java-program to print symbols

Write a Java-program to print symbols

Program
public class Main
{
    public static void main(String args[])
    {
        char ch;
        for(ch=0;ch<=255;ch++)
        {
            if(!(ch>='a' && ch<='z' || ch>='A' && ch<='Z' || ch>='0' && ch<='9'))
            {
                System.out.println(ch);
            }
        }
    }
}	

Output:

! " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \ ] ^ _ ` { | } ~ ¡ ¢ £ ¤ ¥ ¦ § ¨ © ª « ¬ ® ¯ ° ± ² ³ ´ µ ¶ · ¸ ¹ º » ¼ ½ ¾ ¿ À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ð Ñ Ò Ó Ô Õ Ö × Ø Ù Ú Û Ü Ý Þ ß à á â ã ä å æ ç è é ê ë ì í î ï ð ñ ò ó ô õ ö ÷ ø ù ú û ü ý þ ÿ





More Questions


95 . Write a Java-program to print symbols
96 . Write a Java-program to print ASCII values of a to z
97 . Write a Java-program to print ASCII values of A to Z
98 . Write a Java-program to print ASCII values of Numbers
99 . Write a Java-program to print ASCII values of symbols
100 . Write a Java-program to print global and local variables
101 . Write a Java-program to print Max Number using no return type with no parameterized method
102 . Write a Java-program to print Max Number using no return type with parameterized method
103 . Write a Java-program to print Max Number using return type with no parameterized method
104 . Write a Java-program to print Max Number using return type with parameterized method
105 . Write a Java-program to print Factorial Number using no return type with no parameterized method