mirror of https://github.com/01-edu/public.git
docs: fix formatting
This commit is contained in:
parent
868e5821e6
commit
d789bcd666
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -93,4 +93,4 @@ $ javac *.java -d build
|
|||
$ java -cp build ExerciseRunner
|
||||
Hello\s\w.
|
||||
$
|
||||
```
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue