public class Test { public static void main(String[] args) throws Exception { String resStr = Test.reverse(-123); System.out.println(Integer.parseInt(resStr)); }
public static String reverse(Integer value) throws Exception { String str = value.toString(); if (value >= 0) { StringBuffer sb = new StringBuffer(); sb.append(str); return sb.reverse().toString(); } else { StringBuffer sb = new StringBuffer(); sb.append(str.substring(1));
org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 52 in the jsp file: /vip_info.jsp ÕË cannot be resolved 49: <table border="1& ......