Skip to content

Instantly share code, notes, and snippets.

@josefigueredo
Last active December 14, 2020 03:52
Show Gist options
  • Save josefigueredo/3c4c157af3c14824159349d30dd25419 to your computer and use it in GitHub Desktop.
Save josefigueredo/3c4c157af3c14824159349d30dd25419 to your computer and use it in GitHub Desktop.
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