Skip to content

Commit

Permalink
docs: fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
zanninso authored and zanninso committed Jul 18, 2024
1 parent 868e582 commit d789bcd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ public class ExerciseRunner {
public static void main(String[] args) {
RegexDirector director = new RegexDirector();
RegexBuilder builder = new ConcreteRegexBuilder();

director.setBuilder(builder);
Regex regex = director.construct();

System.out.println(regex);
}
}
8 changes: 4 additions & 4 deletions subjects/java/checkpoints/builder-blueprint/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
You are given an incomplete Builder design pattern implementation with some incorrect parts. Complete and fix the classes to demonstrate your understanding of how the Builder design pattern works.

Regex component required:

- Any Character: `.`
- Digit: `\d`
- Whitespace : `\s`
- Word Character: `\w`


### Expected Classes

```java
Expand Down Expand Up @@ -77,10 +77,10 @@ public class ExerciseRunner {
public static void main(String[] args) {
RegexDirector director = new RegexDirector();
RegexBuilder builder = new ConcreteRegexBuilder();

director.setBuilder(builder);
Regex regex = director.construct();

System.out.println(regex);
}
}
Expand All @@ -93,4 +93,4 @@ $ javac *.java -d build
$ java -cp build ExerciseRunner
Hello\s\w.
$
```
```

0 comments on commit d789bcd

Please sign in to comment.