summaryrefslogtreecommitdiff
path: root/snippets
diff options
context:
space:
mode:
Diffstat (limited to 'snippets')
-rw-r--r--snippets/java.json10
1 files changed, 5 insertions, 5 deletions
diff --git a/snippets/java.json b/snippets/java.json
index 5456168..86f7424 100644
--- a/snippets/java.json
+++ b/snippets/java.json
@@ -2,9 +2,9 @@
"Array For Loop": {
"prefix": "fora",
"body": [
- "for (int ${1:i} = 0; ${1:i} < ${2:array}.length; ${1:i}++) {",
- "\t${3:type} ${4:each} = ${2:array}[${1:i}];",
- "\t$0",
+ "for (var ${1:i} = 0; ${1:i} < ${2:array}.length; ${1:i}++) {",
+ " var ${3:each} = ${2:array}[${1:i}];",
+ " $0",
"}"
],
"description": "Array For Loop"
@@ -12,8 +12,8 @@
"For Comprehension": {
"prefix": "for",
"body": [
- "for (${1:Type} ${2:each} : ${3:collection}) {",
- "\t$0",
+ "for (var ${1:each} : ${2:collection}) {",
+ " $0",
"}"
],
"description": "For Comprehension"