Guest User

Untitled

a guest
Jun 27th, 2015
240
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     public static String conc(int max) {
  2.         String s = "a";
  3.         String ret = "a";
  4.         for (int i = 0; i < max; i++) {
  5.             ret += "a";
  6.         }
  7.         return ret;
  8.     }
  9.  
  10.     public static String sb(int max) {
  11.         String s = "a";
  12.         StringBuilder ret = new StringBuilder(s);
  13.         for (int i = 0; i < max; i++) {
  14.             ret.append("a");
  15.         }
  16.         return ret.toString();
  17.     }
RAW Paste Data