Write a Java-program to print ASCII values of symbols

Write a Java-program to print ASCII values of 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+" = "+(int)ch);
            }
        }
    }
}	

Output:

= 32
! = 33
" = 34
# = 35
$ = 36
% = 37
& = 38
' = 39
( = 40
) = 41
* = 42
+ = 43
, = 44
- = 45
. = 46
/ = 47
: = 58
; = 59
< = 60
= = 61
> = 62
? = 63
@ = 64
[ = 91
\ = 92
] = 93
^ = 94
_ = 95
` = 96
{ = 123
| = 124
} = 125
~ = 126
¡ = 161
¢ = 162
£ = 163
¤ = 164
¥ = 165
¦ = 166
§ = 167
¨ = 168
© = 169
ª = 170
« = 171
¬ = 172
® = 174
¯ = 175
° = 176
± = 177
² = 178
³ = 179
´ = 180
µ = 181
¶ = 182
· = 183
¸ = 184
¹ = 185
º = 186
» = 187
¼ = 188
½ = 189
¾ = 190
¿ = 191
À = 192
Á = 193
 = 194
à = 195
Ä = 196
Å = 197
Æ = 198
Ç = 199
È = 200
É = 201
Ê = 202
Ë = 203
Ì = 204
Í = 205
Î = 206
Ï = 207
Ð = 208
Ñ = 209
Ò = 210
Ó = 211
Ô = 212
Õ = 213
Ö = 214
× = 215
Ø = 216
Ù = 217
Ú = 218
Û = 219
Ü = 220
Ý = 221
Þ = 222
ß = 223
à = 224
á = 225
â = 226
ã = 227
ä = 228
å = 229
æ = 230
ç = 231
è = 232
é = 233
ê = 234
ë = 235
ì = 236
í = 237
î = 238
ï = 239
ð = 240
ñ = 241
ò = 242
ó = 243
ô = 244
õ = 245
ö = 246
÷ = 247
ø = 248
ù = 249
ú = 250
û = 251
ü = 252
ý = 253
þ = 254
ÿ = 255





More Questions


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
106 . Write a Java-program to print Factorial Number using no return type with parameterized method
107 . Write a Java-program to print Factorial Number using return type with no parameterized method
108 . Write a Java-program to print Factorial Number using return type with parameterized method
109 . Write a Java-program to print static method