I have a variable of type "long"
long time = System.currntTimeMillis();
I would like to pass it to a method that requires a string. If this wasn't a primative type I would call time.toString(): but that is not a valid method.
What I am doing is
method("" + time);
And this creates a string, but is there a better way or more optimal way to do this?