Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 761825b

Browse files
committed
update readme
1 parent b281eb5 commit 761825b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

‎README.md‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ public Volt get3Volt();
259259

260260
```
261261

262-
while implementing this pattern, there are two approaches : one that deals with inheritance and another one that deals with Composition.Note that they are almost the same thus, here we'll deal with one with inheritance. Let's implement out adapter class !
262+
while implementing this pattern, there are two approaches : one that deals with inheritance and another one that deals with Composition.Note that they are almost the same thus, here we'll deal with one with inheritance. Let's implement out adapter class !
263263

264264

265265
```java
@@ -320,12 +320,11 @@ private static Volt getVolt(SocketAdapter sockAdapter, int i) {
320320
case 120: return sockAdapter.get120Volt();
321321
default: return sockAdapter.get120Volt();
322322
}
323-
324-
325323
}
326-
327324
}
328325
```
329-
This pattern has many usage in the JDK : __java.util.Arrays#asList() java.io.InputStreamReader(InputStream)__ (returns a Reader),__java.io.OutputStreamWriter(OutputStream)__ (returns a Writer).
326+
This pattern has many usage in the JDK :
327+
* __java.util.Arrays#asList() java.io.InputStreamReader(InputStream)__ (returns a Reader),
328+
* __java.io.OutputStreamWriter(OutputStream)__ (returns a Writer).
330329

331330
### Composite Pattern

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /