Last active
February 14, 2020 08:05
-
-
Save fariss/b6a909fdea52c34628e53cbd055fd704 to your computer and use it in GitHub Desktop.
Literally, just turns your sentences into subreddits. That's about it!
This file contains hidden or 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 RedditFormatter { | |
private String[] input; | |
public RedditFormatter(String[] input) { | |
this.input = input; | |
} | |
public String format() { | |
String result = String.join(" r/", this.input); | |
System.out.println("r/" + result); | |
return result; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment