The StringTokenizer constructor that you are using won't return any token including '/' character, because of the third argument in constructor which is false. The second argument is used to denote delimiters/separators between the tokens.