Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static String conc(int max) {
- String s = "a";
- String ret = "a";
- for (int i = 0; i < max; i++) {
- ret += "a";
- }
- return ret;
- }
- public static String sb(int max) {
- String s = "a";
- StringBuilder ret = new StringBuilder(s);
- for (int i = 0; i < max; i++) {
- ret.append("a");
- }
- return ret.toString();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement