Java single token example