Skip to content

Commit

Permalink
fix(quote): delete unecessary double tabs in Java quote (alyoro) (#4665)
Browse files Browse the repository at this point in the history
* Deleting unecessary double tabs at the end of line in Java quote

* Updated length of the quote
  • Loading branch information
alyoro committed Sep 26, 2023
1 parent c147624 commit bb4eaee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/static/quotes/code_java.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@
"length": 235
},
{
"text": "public int removeAtIndex(int index) {\n\tif (index < 0 || index >= size()) {\n\t\tSystem.out.println(\"index out of bounds or list is empty\");\n\t}\n\tNode curr = null;\n\tint elem = 0;\n\tif (index != 0) {\n\t\tcurr = getNodeAtIndex(index - 1);\t\t\n\t}\n\treturn remove(curr);\n}",
"text": "public int removeAtIndex(int index) {\n\tif (index < 0 || index >= size()) {\n\t\tSystem.out.println(\"index out of bounds or list is empty\");\n\t}\n\tNode curr = null;\n\tint elem = 0;\n\tif (index != 0) {\n\t\tcurr = getNodeAtIndex(index - 1);\n\t}\n\treturn remove(curr);\n}",
"source": "Remove an Element using its Index in a Linked List",
"id": 20,
"length": 257
"length": 255
},
{
"text": "public boolean add(int elem) {\n\tif (elems.contains(elem)) {\n\t\treturn false;\n\t}\n\telems.add(elem);\n\treturn true;\n}",
Expand Down

0 comments on commit bb4eaee

Please sign in to comment.