Skip to content

Commit d96aa3a

Browse files
committed
Fixed
1 parent 6eafa8a commit d96aa3a

1 file changed

Lines changed: 38 additions & 21 deletions

File tree

_notebooks/homework/2025-09-30-1.2_variables_lesson.ipynb

Lines changed: 38 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,20 @@
3838
"\n",
3939
"**Solution:**\n",
4040
"\n",
41-
"```java\n",
41+
"\n"
42+
]
43+
},
44+
{
45+
"cell_type": "code",
46+
"execution_count": 2,
47+
"metadata": {
48+
"vscode": {
49+
"languageId": "java"
50+
}
51+
},
52+
"outputs": [],
53+
"source": [
54+
"\n",
4255
"public class MyFavoriteThings {\n",
4356
" public static void main(String[] args) {\n",
4457
" String favoriteFood = \"Sushi\";\n",
@@ -55,7 +68,7 @@
5568
" System.out.println(\"Favorite color starts with: \" + colorFirstLetter);\n",
5669
" System.out.println(\"Born in: \" + BIRTH_YEAR);\n",
5770
" }\n",
58-
"}\n"
71+
"}"
5972
]
6073
},
6174
{
@@ -68,14 +81,16 @@
6881
]
6982
},
7083
{
71-
"cell_type": "markdown",
84+
"cell_type": "code",
85+
"execution_count": 3,
7286
"metadata": {
7387
"vscode": {
74-
"languageId": "raw"
88+
"languageId": "java"
7589
}
7690
},
91+
"outputs": [],
7792
"source": [
78-
"```java\n",
93+
"\n",
7994
"public class PickTheType {\n",
8095
" public static void main(String[] args) {\n",
8196
" int siblings = 3; // Whole number → int\n",
@@ -123,10 +138,16 @@
123138
]
124139
},
125140
{
126-
"cell_type": "markdown",
127-
"metadata": {},
141+
"cell_type": "code",
142+
"execution_count": 4,
143+
"metadata": {
144+
"vscode": {
145+
"languageId": "java"
146+
}
147+
},
148+
"outputs": [],
128149
"source": [
129-
"```java\n",
150+
"\n",
130151
"public class GradeCalculator {\n",
131152
" public static void main(String[] args) {\n",
132153
" // Final variables (never change)\n",
@@ -168,21 +189,17 @@
168189
],
169190
"metadata": {
170191
"kernelspec": {
171-
"display_name": "Python 3",
172-
"language": "python",
173-
"name": "python3"
192+
"display_name": "Java",
193+
"language": "java",
194+
"name": "java"
174195
},
175196
"language_info": {
176-
"codemirror_mode": {
177-
"name": "ipython",
178-
"version": 3
179-
},
180-
"file_extension": ".py",
181-
"mimetype": "text/x-python",
182-
"name": "python",
183-
"nbconvert_exporter": "python",
184-
"pygments_lexer": "ipython3",
185-
"version": "3.12.5"
197+
"codemirror_mode": "java",
198+
"file_extension": ".jshell",
199+
"mimetype": "text/x-java-source",
200+
"name": "Java",
201+
"pygments_lexer": "java",
202+
"version": "25+36-LTS"
186203
}
187204
},
188205
"nbformat": 4,

0 commit comments

Comments
 (0)