Add Java annotation to code blocks in README files

This commit is contained in:
Wes Gilleland
2018-03-28 01:35:43 -04:00
parent 6879990857
commit 86ee59c232
13 changed files with 49 additions and 45 deletions

View File

@ -34,7 +34,7 @@ Joshua Bloch, Effective Java 2nd Edition p.18
> A single-element enum type is the best way to implement a singleton
```
```java
public enum EnumIvoryTower {
INSTANCE;
}
@ -42,7 +42,7 @@ public enum EnumIvoryTower {
Then in order to use
```
```java
EnumIvoryTower enumIvoryTower1 = EnumIvoryTower.INSTANCE;
EnumIvoryTower enumIvoryTower2 = EnumIvoryTower.INSTANCE;
assertEquals(enumIvoryTower1, enumIvoryTower2); // true