Skip to content

Instantly share code, notes, and snippets.



Created Aug 15, 2018
What would you like to do?
public class Todo {
String userId;
int id;
String title;
boolean completed;
public String getFormattedInfo() {
StringBuilder builder = new StringBuilder();
builder.append("Title: " + title + "\n\n");
builder.append("UserId: " + userId + "\n");
builder.append("Id: " + id + "\n");
builder.append("Completed: " + completed + "\n");
return new String(builder);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.