Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static final Pattern OMIT_DIGITS = Pattern.compile("\\d+ (?<value>.+)");
- private final Collection<String> values = HistoricalFigures.get();
- @Override
- protected void execute() {
- Collection<String> valuesWithoutId = new ArrayList<>();
- for (String value: values) {
- Matcher m = OMIT_DIGITS.matcher(value);
- if (!m.find()) {
- continue;
- }
- valuesWithoutId.add(m.group("value"));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement