Can someone please explain this
to me. I want to get the integer
or "numeric value" of a hex string.
Now, i want to use the valueOf()method
which is declared within the Integer
wrapper class but you can only create
a new instance of the Integer wrapper class
with either:

public Integer(String s);
or
public Integer(int value);

the only way to use the valueOf() method is to first create a new Integer Object but you cannot create an Instance of Integer with out an initial value. You cant subclass Integer because it is final. So how do you use this method? I have no clue.

class test{
public static void main(String[] args){
try{
Integer hex = new Integer(????);
String hexstring = "0xfffffff";
long l = hex.valueOf(hexstring,16);
System.out.println(l);
}catch(Exception e){System.err.println(e);}
}
}

this produces a java.lang.NumberFormatException
so this dosent work either

class test{
public static void main(String[] args){
try{
Integer hex = new Integer("0xfffffff");
System.out.println(hex.valueOf("0x7fffffff",16));
}catch(Exception e){System.err.println(e);}
}
}