Skip to content

Commit f2a6e76

Browse files
committed
remove a blank line in the middle of the code that trip jupyter notebook
1 parent 61f5cce commit f2a6e76

File tree

3 files changed

+1
-13
lines changed

3 files changed

+1
-13
lines changed

chapter02-methods.jsh

-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ record Rectangle(int width, int height) {
6969
int area() {
7070
return width * height;
7171
}
72-
7372
static Rectangle createSquare(int side) {
7473
return new Rectangle(side, side);
7574
}

guide/chapter02-methods.md

-3
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@ record Rectangle(int width, int height) {
7777
int area() {
7878
return width * height;
7979
}
80-
```
81-
82-
```java
8380
static Rectangle createSquare(int side) {
8481
return new Rectangle(side, side);
8582
}

jupyter/chapter02-methods.ipynb

+1-9
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,7 @@
104104
"execution_count": null,
105105
"metadata": {},
106106
"outputs": [],
107-
"source": ["record Rectangle(int width, int height) {\n", " int area() {\n", " return width * height;\n", " }\n"]
108-
}
109-
,
110-
{
111-
"cell_type": "code",
112-
"execution_count": null,
113-
"metadata": {},
114-
"outputs": [],
115-
"source": [" static Rectangle createSquare(int side) {\n", " return new Rectangle(side, side);\n", " }\n", "}\n"]
107+
"source": ["record Rectangle(int width, int height) {\n", " int area() {\n", " return width * height;\n", " }\n", " static Rectangle createSquare(int side) {\n", " return new Rectangle(side, side);\n", " }\n", "}\n"]
116108
}
117109
,
118110
{

0 commit comments

Comments
 (0)