Long: parseLong(String s, int radix) : Long « java.lang « Java by API






Long: parseLong(String s, 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));

  }
}

   
    
    
  








Related examples in the same category

1.Long.MAX_VALUE
2.Long.MIN_VALUE
3.long.class
4.new Long(String s)
5.new Long(long value)
6.Long: byteValue()
7.Long: doubleValue()
8.Long: floatValue()
9.Long: intValue()
10.Long: longValue()
11.Long: shortValue()
12.Long: toHexString(long i)
13.Long: toString(long i, int radix)
14.Long: valueOf(String stringValue)