Java Char Create toChar(short o)

Here you can find the source of toChar(short o)

Description

to Char

License

Apache License

Declaration

public static char toChar(short o) 

Method Source Code

//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);
    }
}

Related

  1. toChar(int var)
  2. toChar(int[] arr)
  3. toChar(int[] arr)
  4. toChar(Object obj)
  5. toChar(Object value)
  6. toChar(String chars)
  7. toChar(String delimiter)
  8. toChar(String parameter)
  9. toChar(String string)