public class test1 {
String testVar = "s";
String binary;
int decimal;
public test1()
{
decimal = Integer.parseInt(testVar.trim(), 16 );
System.out.println(decimal);
}
here is my code, It seems that this works with other letters but when its an string value "s", Error shows up
Exception in thread "main" java.lang.NumberFormatException: For input string: "s"