W
Wojtek
If I have the following:
StringBuilder text = new StringBuilder();
text.append("Hello");
text.append(" ");
text.append("World"):
or
StringBuilder text = new StringBuilder();
text.append("Hello" + " " + "World"):
I read somewhere at one time that the Java compiler will take the
second example and create the first example from it.
The second is easier to read but I have been using the first for better
efficiency.
StringBuilder text = new StringBuilder();
text.append("Hello");
text.append(" ");
text.append("World"):
or
StringBuilder text = new StringBuilder();
text.append("Hello" + " " + "World"):
I read somewhere at one time that the Java compiler will take the
second example and create the first example from it.
The second is easier to read but I have been using the first for better
efficiency.