01: /*******************************************************************************
02: * Copyright (c) 2004, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.internal.intro.universal.util;
11:
12: public class StringUtil {
13:
14: public static StringBuffer concat(String string1, String string2,
15: String string3) {
16: StringBuffer buffer = new StringBuffer(string1);
17: buffer.append(string2);
18: buffer.append(string3);
19: return buffer;
20: }
21:
22: public static StringBuffer concat(String string1, String string2,
23: String string3, String string4) {
24: StringBuffer buffer = concat(string1, string2, string3);
25: buffer.append(string4);
26: return buffer;
27: }
28:
29: public static StringBuffer concat(String string1, String string2,
30: String string3, String string4, String string5) {
31: StringBuffer buffer = concat(string1, string2, string3, string4);
32: buffer.append(string5);
33: return buffer;
34: }
35:
36: public static StringBuffer concat(String string1, String string2,
37: String string3, String string4, String string5,
38: String string6) {
39: StringBuffer buffer = concat(string1, string2, string3,
40: string4, string5);
41: buffer.append(string6);
42: return buffer;
43: }
44:
45: }
|