List of usage examples for java.lang StringBuffer append
@Override public synchronized StringBuffer append(double d)
From source file:Main.java
public static void main(String[] argv) { StringBuffer sb = new StringBuffer(); sb.append(1.2); System.out.println(sb.toString()); }
From source file:Main.java
public static void main(String[] argv) { StringBuffer sb = new StringBuffer(); sb.append(true); System.out.println(sb.toString()); }
From source file:Main.java
public static void main(String[] argv) { StringBuffer sb = new StringBuffer(); sb.append('a'); System.out.println(sb.toString()); }
From source file:Main.java
public static void main(String[] argv) { StringBuffer sb = new StringBuffer(); sb.append("java2s.com"); System.out.println(sb.toString()); }
From source file:Main.java
public static void main(String[] argv) { StringBuffer sb = new StringBuffer(); sb.append("java2s.com"); String sub = sb.substring(1, 2); System.out.println(sub);/*from w ww . ja va 2s . c o m*/ }
From source file:Main.java
public static void main(String[] argv) { StringBuffer sb = new StringBuffer(); sb.append("java2s.com"); System.out.println(new String(sb)); }
From source file:Main.java
public static void main(String args[]) { StringBuffer sb = new StringBuffer(); sb.append("java2s.com"); int index = sb.indexOf("a"); System.out.println(index);//w w w .j a v a 2s .co m }
From source file:Main.java
public static void main(String[] argv) { StringBuffer sb = new StringBuffer(); sb.append("java2s.com"); sb.reverse();//from w w w.j av a 2 s . co m System.out.println(sb.toString()); }
From source file:MainClass.java
public static void main(String args[]) { StringBuffer sb = new StringBuffer(40); sb.append(5); System.out.println(sb);// w w w . j a v a2 s. com }
From source file:Main.java
public static void main(String[] argv) { StringBuffer sb = new StringBuffer(); sb.append(true); sb.append("java2s.com"); sb.delete(1, 2);/*from w w w .jav a 2 s. c o m*/ System.out.println(sb.toString()); }