Java. lang. numberformatexception: for input string: "1.0" at java. lang. numberformatexception. forinputstring (numberformatexception. java: 48) at java. lang. integer. parseint (integer. java: 477) at java. lang. integer. (integer. java: 609) at com. gpcsoft. eProcurement. mydesktop. seller. business. sellerpolictopbusiness $ ordernocomparator. compare (seller1_topbusiness. java: 219) at java. util. arrays. mergesort (arrays. java: 1278) at java. util. arrays. sort (arrays. java: 1219) at java. util. collections. sort (collections. java: 155)
public class ordernocomparator implements comparator {public int compare (Object element1, object element2) {try {object tmpstr2 = beanutilsex. getproperty (element1, "orderno"); object tmpstr1 = beanutilsex. getproperty (element1, "orderno"); // The double type is obtained. result tostring (); if it is x.0.0. return (New INTEGER (tmpstr2.tostring () is returned ())). compareto (New INTEGER (tmpstr1.tostring ();} catch (illegalaccessexception e) {// todo auto-generated catch blocke. printstacktrace ();} catch (invocationtargetexception e) {// todo auto-generated catch blocke. printstacktrace ();} catch (nosuchmethodexception e) {// todo auto-generated catch blocke. printstacktrace () ;}return 0 ;}