Last active
December 14, 2020 03:52
-
-
Save josefigueredo/3c4c157af3c14824159349d30dd25419 to your computer and use it in GitHub Desktop.
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
package com.josefigueredo.patterns; | |
public class StrategyPatternRunner { | |
public static void main(String[] args) { | |
String originalText = "This is a test from December 8th, 2020"; | |
String expectedText = "ThisisatestfromDecember8th,2020"; | |
noWhitespaces = Remover.remove(originalText, s -> s.replace(" ", "")); | |
assert noWhitespaces.equals(expectedText); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment