How can I use java Integer.Intparse()? : I was trying to change like  String A00001 to int 1 in this code.but Eclipse told me that ---
Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: "00001                        "
	at java.lang.NumberFormatException.forInputString(Unknown Source)
	at java.lang.Integer.parseInt(Unknown Source)
	at java.lang.Integer.parseInt(Unknown Source)
	at LibraryManager.BookAdd.getInsertOrderedList(BookAdd.java:105)



    while(rs1.next()){
    			allid[i]=rs1.getString("id");
    			String mystr=allid[i].substring(1);
    			try{
    			System.out.println(mystr);//this print 00001
    			intofid[i]=Integer.parseInt(mystr);
    			}catch(Exception e){
    				e.printStackTrace();
    			}
    			i++;
    		}

<!-- end snippet -->
how could I resolved this??
