I have a method which takes String argument.In some cases i want to pass int value to that method.For invoking that method i want to convert int into String.For that i am doing the following
aMethod(""+100);
One more option is
aMethod(String.valueOf(100));
Both are correct.I don't know which is appropriate?Which gives better performance?
Mostly this is happen in GWT.In GWT for setting size of panels and widgets i want to do this.
Can anyone give suggestion?