public static void main(String[] args) throws IOException { InputHandler ih = new InputHandler(args[0]); Solution sol = new Solution(); ArrayList<int[]> inIntList = ih.getDataAsIntList(); for (int i = 0; i < inIntList.size(); i++) { int n = inIntList.get(i)[0]; System.out.println(sol.isPalindrome(n)); } }
/** 获取当前行内容 */ public final String getCurrentLine() { // return lines == null ? null : (String) lines.get(curLine); // // 2009/05/21 @modifyby 江威 if (lines == null || curLine < 0 || curLine >= lines.size()) return ""; return (String) lines.get(curLine); }
/** 获取指定行内容 */ public final String getLine(int n) { if (lines == null || n < 0 || n >= lines.size()) return ZMLTag.NONE_VALUE; return (String) lines.get(n); }