Tuesday, July 5, 2016


StringBuilder sb=new StringBuilder();
sb.append("Data length: ").append(data != null ? data.length : "<null>").append("\n");

I understand that a StringBuilder object can append almost anything, but C# would've told me I'm an idiot for returning different types in a ternary operator...

No comments:

Post a Comment