Skip to content

Commit 91c75c4

Browse files
committed
fixed:java-swap-code
1 parent 3965f19 commit 91c75c4

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

data/java-cheat-sheet.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,22 @@
9999
{
100100
"title": "সহজে অদলবদল দুইটির মান",
101101
"items": [{
102-
"code": "let x =5, y=10;"
102+
"code": "int x =5, y=10;"
103103
},
104104
{
105-
"code": "[x,y]=[y,x];"
105+
"code": "int temp;"
106106
},
107107
{
108-
"code": "System.out.println(x); //10;"
108+
"code": "temp = x;"
109+
},
110+
{
111+
"code": "x = y;"
112+
},
113+
{
114+
"code": "y = temp;"
115+
},
116+
{
117+
"code": "System.out.println(x); //10"
109118
},
110119
{
111120
"code": "System.out.println(y); //5"

0 commit comments

Comments
 (0)