The StringTokenizer constructors do not accept arrays (args). Try just passing the first value of the array, or if needed loop through the array and pass each value to the StringTokenizer.