StringBuilder StringBuilderShow() {
StringBuilder dialogStr = new StringBuilder();
StringBuilderTest talClazz = new StringBuilderTest();
dialogStr.append((new StringBuilder("Table: ")).append(talClazz.getClass().getName()).append("\n"));
return dialogStr;
}
public static void main(String args[]) {
StringBuilderTest test = new StringBuilderTest();
StringBuilder str=test.StringBuilderShow();
str.append("\r\n\t abishkar");
System.out.println(str);
}
}
public class StringImp {
public static void main(String[] args){
String d=new StringBuilder(String.valueOf("abc")).append(":").append("def").append(":").append("ijk").toString();
System.out.println(d);
}
}
No comments:
Post a Comment