Character: forDigit(int digit, int radix) : Character « java.lang « Java by API






Character: forDigit(int digit, int radix)

  

public class Main {
  public static void main(String args[]) {
    Boolean b1 = new Boolean("TRUE");
    Boolean b2 = new Boolean("FALSE");
    System.out.println(b1.toString() + " or " + b2.toString());
    for (int j = 0; j < 16; ++j)
      System.out.print(Character.forDigit(j, 16));


    
    Integer i = new Integer(Integer.parseInt("ef", 16));
    Long l = new Long(Long.parseLong("abcd", 16));
    long m = l.longValue() * i.longValue();
    System.out.println(Long.toString(m, 8));
    System.out.println(Float.MIN_VALUE);
    System.out.println(Double.MAX_VALUE);
  }
}

   
    
  








Related examples in the same category

1.Character.COMBINING_SPACING_MARK
2.Character.MATH_SYMBOL
3.Character.NON_SPACING_MARK
4.Character.TITLECASE_LETTER
5.new Character(char charValue)
6.Character: charValue()
7.Character: compareTo(Character anotherCharacter)
8.Character: digit(char ch, int radix)
9.Character: equals(Object obj)
10.Character: isDigit(char charValue)
11.Character.isISOControl(char ch)
12.Character.isIdentifierIgnorable(char ch)
13.Character.isJavaIdentifierPart(char ch)
14.Character.isJavaIdentifierStart(char ch)
15.Character: isLetter(char charValue)
16.Character: isLetterOrDigit(char charValue)
17.Character: isLowerCase(char charValue)
18.Character.isUnicodeIdentifierPart(char ch)
19.Character.isUnicodeIdentifierStart(char ch)
20.Character: isUpperCase(char charValue)
21.Character.isWhitespace(char ch)
22.Character: toString()
23.Character.UnicodeBlock.of(char c)