Here you can find the source of toChar(short o)
public static char toChar(short o)
//package com.java2s; //License from project: Apache License public class Main { public static char toChar(String o) { return o.isEmpty() ? '\0' : o.charAt(0); }//from ww w . j a v a 2 s . c o m public static char toChar(long o) { return (char) o; } public static char toChar(int o) { return (char) o; } public static char toChar(short o) { return (char) o; } public static char toChar(byte o) { return (char) o; } public static char toChar(double o) { return (char) o; } public static char toChar(float o) { return (char) o; } public static char toChar(boolean o) { return (char) (o ? 0 : 1); } }