You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -259,7 +259,7 @@ public Volt get3Volt();
259
259
260
260
```
261
261
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 !
263
263
264
264
265
265
```java
@@ -320,12 +320,11 @@ private static Volt getVolt(SocketAdapter sockAdapter, int i) {
320
320
case120:return sockAdapter.get120Volt();
321
321
default:return sockAdapter.get120Volt();
322
322
}
323
-
324
-
325
323
}
326
-
327
324
}
328
325
```
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).
0 commit comments