I have thread name coming into ll
Thread-99
but for Thread-9 ,this conversion return errors :please suggest me a code to convert the name of thread to only INT type number
String a=ll.substring(7,9);
String ll=Thread.currentThread().getName();
String a=ll.substring(7,9);
int i = Integer.valueOf(a).intValue();