List of usage examples for java.lang StringBuilder append
@Override public StringBuilder append(double d)
From source file:Main.java
private static void addStartLine(Object aObject, StringBuilder aResult) { aResult.append(aObject.getClass().getName()); aResult.append(" {"); aResult.append(NEW_LINE);/* w w w .java 2 s. co m*/ }
From source file:Main.java
private static String create(int i) { StringBuilder sb = new StringBuilder(); sb.append("Welcome to <a href="); sb.append("'http://www.java2s.com'>Example "); sb.append(i);//from w w w . j a va2 s.c om sb.append("</a>.<br>"); return sb.toString(); }
From source file:Main.java
public static ByteBuffer getDataBuffer() { String lineSeparator = System.getProperty("line.separator"); StringBuilder sb = new StringBuilder(); sb.append("test"); sb.append(lineSeparator);//from w ww . j ava2s .c o m String str = sb.toString(); Charset cs = Charset.forName("UTF-8"); ByteBuffer bb = ByteBuffer.wrap(str.getBytes(cs)); return bb; }
From source file:Main.java
private static void printTitle(StringBuilder builder) { builder.append("============ THREAD DUMP ============\n"); }
From source file:Main.java
private static void DisplayHeader(StringBuilder sb, int Count) { sb.append("***********************************\n"); sb.append("******** Customer " + Count + " Info ********\n"); sb.append("***********************************\n"); }
From source file:Main.java
public static String getSMSMessage(String suid, String appId) { StringBuilder sb = new StringBuilder(); sb.append(suid).append(",").append(appId); return sb.toString(); }
From source file:Main.java
public static String iCalFooter() { StringBuilder sb = new StringBuilder(); sb.append("END:VCALENDAR").append("\n"); return sb.toString(); }
From source file:Main.java
public static void appendTagPre(StringBuilder sb, String tagName) { sb.append("<").append(tagName).append(">"); }
From source file:Main.java
public static void appendTagPost(StringBuilder sb, String tagName) { sb.append("</").append(tagName).append(">"); }
From source file:Main.java
public static String getAudioDuration(int second) { StringBuilder sb = new StringBuilder(); sb.append(second).append("\""); return sb.toString(); }