Created
August 15, 2018 14:30
-
-
Save mayuroks/f7ec75981e4419274faebe73dda8e9c0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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