Write a program in java to input a character. Find and display the next 10th character in ASCII table
Answers
Answered by
2
Answer:
Explanation:
We will be only considering the Printable Characters. We can typecast a char into int or byte to get the ASCII Code. We can then just increase this integer value by 1 and typecast back into char to get the corresponding character. Note that we must use Modulo (%) 128 operation, because ASCII ranges from 0-127.
if it helped pls mark me as brainlist
thanks
Similar questions