Solution:
if(j > 1){ String t = s.substring(j); int idx = i+s.getBytes("utf-8").length - t.getBytes("utf-8").length; stringTable.put(t, new Integer(idx)); stringTable.put(s.substring(j+1), new Integer(idx+1)); }
Log in to post a comment.