Java convert short to char

Tags: short char

In this Java core tutorial we learn how to convert a short value into char value in Java programming language.

How to convert short to char in Java

In Java, with a given short value to can cast it to char value as the following example Java code.

public class ConvertShortToCharExample1 {
    public static void main(String... args) {
        short shortValue = 69;

        char charValue = (char)shortValue;

        System.out.println("short value: " + shortValue);
        System.out.println("char value: " + charValue);
The output as below.
short value: 69
char value: E

Happy Coding 😊

Java convert short to long

Java convert short to byte

Java convert short to BigInteger

Java convert short to BigDecimal

Java convert long to short

Java convert char to short

Java convert byte to short