/** * Returns the current character. Returns -1 if there are no more characters. * * @return the next character */ public char get() { skipWS(); if (pos < s.length()) { return s.charAt(pos); } return (char) -1; }
/** * Returns the current character. Returns -1 if there are no more characters. * * @return the next character */ public char get() { skipWS(); if (pos < s.length()) { return s.charAt(pos); } return (char) -1; }