This is the simple program of java.lang package. In this example, we are going to convert decimal number to its corresponding character.
Code Description:
Here, define class named ?DecimalToChar? for java component. This program takes a decimal value. Type casting (char) d ) is done to convert the decimal into the corresponding character..
Here is the code of this program:
import java.io.*;
|
Output of this program given below.
| C:\corejava>java DecimalToASCII Enter the Decimal number: 65 Enter decimal number is:=65 ASCII OF:=A C:\corejava> |
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
Ask Questions? Discuss: Convert Decimal To Character View All Comments
Post your Comment