Return | Method | Summary |
---|---|---|
StringBuilder | append(boolean b) | Appends the string representation of the boolean argument to the sequence. |
StringBuilder | append(char c) | Appends the string representation of the char argument to this sequence. |
StringBuilder | append(char[] str) | Appends the string representation of the char array argument to this sequence. |
StringBuilder | append(char[] str, int offset, int len) | Appends the string representation of a subarray of the char array argument to this sequence. |
StringBuilder | append(CharSequence s) | Appends the specified character sequence to this Appendable. |
StringBuilder | append(CharSequence s, int start, int end) | Appends a subsequence of the specified CharSequence to this sequence. |
StringBuilder | append(double d) | Appends the string representation of the double argument to this sequence. |
StringBuilder | append(float f) | Appends the string representation of the float argument to this sequence. |
StringBuilder | append(int i) | Appends the string representation of the int argument to this sequence. |
StringBuilder | append(long lng) | Appends the string representation of the long argument to this sequence. |
StringBuilder | append(Object obj) | Appends the string representation of the Object argument. |
StringBuilder | append(String str) | Appends the specified string to this character sequence. |
StringBuilder | append(StringBuffer sb) | Appends the specified StringBuffer to this sequence. |
StringBuilder | appendCodePoint(int codePoint) | Appends the string representation of the codePoint argument to this sequence. |
StringBuilder | insert(int offset, boolean b) | Inserts the string representation of the boolean argument into this sequence. |
StringBuilder | insert(int offset, char c) | Inserts the string representation of the char argument into this sequence. |
StringBuilder | insert(int offset, char[] str) | Inserts the string representation of the char array argument into this sequence. |
StringBuilder | insert(int index, char[] str, int offset, int len) | Inserts the string representation of a subarray of the str array argument into this sequence. |
StringBuilder | insert(int dstOffset, CharSequence s) | Inserts the specified CharSequence into this sequence. |
StringBuilder | insert(int dstOffset, CharSequence s, int start, int end) | Inserts a subsequence of the specified CharSequence into this sequence. |
StringBuilder | insert(int offset, double d) | Inserts the string representation of the double argument into this sequence. |
StringBuilder | insert(int offset, float f) | Inserts the string representation of the float argument into this sequence. |
StringBuilder | insert(int offset, int i) | Inserts the string representation of the second int argument into this sequence. |
StringBuilder | insert(int offset, long l) | Inserts the string representation of the long argument into this sequence. |
StringBuilder | insert(int offset, Object obj) | Inserts the string representation of the Object argument into this character sequence. |
StringBuilder | insert(int offset, String str) | Inserts the string into this character sequence. |
public class Main {
public static void main(String[] argv) {
StringBuilder sb = new StringBuilder();
sb.append("java2s.com");
sb.append(123);
sb.append(1.23);
sb.append(true);
System.out.println(sb.toString());
}
}
The output:
java2s.com1231.23true
java2s.com | Contact Us | Privacy Policy |
Copyright 2009 - 12 Demo Source and Support. All rights reserved. |
All other trademarks are property of their respective owners. |