Exercise A1
Java Fundamentals exercises
Wk2 – Ex A1
- Write a program called AsciiValues that loops until the user types in ‘x’ (a char). For each character input, output the character itself e.g. A but also its numeric Ascii value
i.e. 65 (is the Ascii value for A).
Console Output
AsciiValues [Java Application]
Enter char : c
Ascii value of c i 99
Enter char : d
Ascii value of c i 100
Enter char : *
Ascii value of c i 42
Enter char :