1 11 package org.eclipse.ui.internal.intro.universal.util; 12 13 14 15 public class StringUtil { 16 17 public static StringBuffer concat(String string1, String string2, 18 String string3) { 19 StringBuffer buffer = new StringBuffer (string1); 20 buffer.append(string2); 21 buffer.append(string3); 22 return buffer; 23 } 24 25 public static StringBuffer concat(String string1, String string2, 26 String string3, String string4) { 27 StringBuffer buffer = concat(string1, string2, string3); 28 buffer.append(string4); 29 return buffer; 30 } 31 32 public static StringBuffer concat(String string1, String string2, 33 String string3, String string4, String string5) { 34 StringBuffer buffer = concat(string1, string2, string3, string4); 35 buffer.append(string5); 36 return buffer; 37 } 38 39 public static StringBuffer concat(String string1, String string2, 40 String string3, String string4, String string5, String string6) { 41 StringBuffer buffer = concat(string1, string2, string3, string4, 42 string5); 43 buffer.append(string6); 44 return buffer; 45 } 46 47 48 49 } 50 | Popular Tags |