I have a method that takes a String argument. In some cases, I want to pass an int value to this method. To call this method, I want to convert int to String. For this I do the following
aMethod(""+100);
Another option
aMethod(String.valueOf(100));
Both are correct. I do not know what is suitable? What gives the best performance?
In most cases, this happens in the GWT. In GWT, I want to do this to adjust the size of panels and widgets.
Can someone give a suggestion?
java string
Donx
source share