Code examples for StringBuilder

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
68:	final StringBuilder sb = new StringBuilder(); 
69:	sb.append("ProtectionSpecificHeader"); 
70:	sb.append("{data="); 
-
75:	sb.append(Hex.encodeHex(bytes)); 
76:	sb.append('}'); 
77:	return sb.toString(); 
Full Snippet Info
8
CodeRank
85:	return "(Name: " + name() + " Operator Key: " + mKey + ")"; 
Full Snippet Info
7
CodeRank
172:	Log.i(TAG, "Error converting RawContact to JSONObject" + ex.toString()); 
Full Snippet Info
7
CodeRank
276:	sb.append(" cast to: " + DataType.findTypeName(mCastType)); 
Full Snippet Info
7
CodeRank
121:	String alterQuery = "alter table " + tableName + " rename to 'temp_" + tableName + "'"; 
Full Snippet Info
6
CodeRank
174:	Log.d(TAG, "onCreateDialog(" +id+")"); 
Full Snippet Info
6
CodeRank
68:	final StringBuilder sb = new StringBuilder(); 
69:	sb.append("ProtectionSpecificHeader"); 
70:	sb.append("{data="); 
-
75:	sb.append(Hex.encodeHex(bytes)); 
76:	sb.append('}'); 
77:	return sb.toString(); 
Full Snippet Info
6
CodeRank
41:	StringBuilder msg = new StringBuilder(100); 
42:	msg.append("Method "); 
43:	msg.append(method); 
44:	msg.append(" is not valid in current state"); 
-
46:	DebugOut.logError(msg.toString()); 
Full Snippet Info
6
CodeRank
20:	return type+":"+score.toString(); 
Full Snippet Info
6
CodeRank
85:	return "(Name: " + name() + " Operator Key: " + mKey + ")"; 
Full Snippet Info
6
CodeRank
182:	sb.append(" fields: " + mFields); 
Full Snippet Info
6
CodeRank
124:	mMainView.append(sb.toString()); 
Full Snippet Info
6
CodeRank
205:	(hide ? "HIDING" : "SHOWING") + " navigation bar"); 
Full Snippet Info
5
CodeRank
185:	sb.append(" removed fields: " + mRemovedFields); 
Full Snippet Info
6
CodeRank
546:	remoteLogger.sendErrorEvent(context, "JS Error at " + url + " line " + lineNumber + ": " + message); 
Full Snippet Info
6
CodeRank
42:	StringBuilder q = new StringBuilder(); 
43:	q.append ("SELECT " + RESOURCE + "," + OWNER + " FROM " + TABLE + " WHERE "); 
-
45:	q.append ("type in ('80', '128') AND "); // 80 -> link, 128 -> uploaded video 
46:	return q.toString(); 
Full Snippet Info
6
CodeRank
91:	vip.append("vid:" + vid + ", "); 
Full Snippet Info
6
CodeRank
154:	if (text.length() <= 0) return; 
-
157:	if (translator.fromMorse(text.toString(), false) == "Newline") { 
-
160:	else if (translator.fromMorse(text.toString(), false) == "EOT") { 
-
166:	ic.commitText(translator.fromMorse(text.toString(), uppercase), /* new cursor pos */ 1); 
-
168:	text.setLength(0); 
Full Snippet Info
5
CodeRank
185:	sb.append(" mapped fields: " + mMappedFields); 
Full Snippet Info
5
CodeRank
259:	return "[" + mName + "]"; 
Full Snippet Info
5
CodeRank