Are you sure? What about Integer.toString(counter++)?