mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-15 01:56:18 +08:00
adding additional quotes for Java
This commit is contained in:
parent
d5ec040973
commit
aeefe50035
1 changed files with 7 additions and 1 deletions
|
@ -32,7 +32,7 @@
|
|||
"length": 33
|
||||
},
|
||||
{
|
||||
"text": "public enum OperatingSystem {\n\tOSX, WIndows, LINUX;\n\tpublic String toString() {\n\t\tswitch(this) {\n\t\t\tcase OSX: return \"Mac OS\",\n\t\t\tcase WINDOWS: return \"Windows\";\n\t\t\tcase LINUX: return \"Linux\";\n\t\t}\\n\t}\n}",
|
||||
"text": "public enum OperatingSystem {\n\tOSX, WIndows, LINUX;\n\tpublic String toString() {\n\t\tswitch(this) {\n\t\t\tcase OSX: return \"Mac OS\",\n\t\t\tcase WINDOWS: return \"Windows\";\n\t\t\tcase LINUX: return \"Linux\";\n\t\t}\n\t}\n}",
|
||||
"id": 5,
|
||||
"source": "Community contribution",
|
||||
"length": 202
|
||||
|
@ -42,6 +42,12 @@
|
|||
"id": 6,
|
||||
"source": "Check if list contains a value - programming-idioms.org",
|
||||
"length": 55
|
||||
},
|
||||
{
|
||||
"text": "public enum Wood {\n\tINDIAN_ROSEWOOD, BRAZILIAN_ROSEWOOD, MAHOGANY,\n\tMAPLE, COCOBOLO, CEDAR, ADIRONDACK, ALDER, SITKA;\n\n\tpublic String toString() {\n\t\tswitch(this) {\n\t\t\tcase INDIAN_ROSEWOOD: return \"Indian Rosewood\";\n\t\t\tcase BRAZILIAN_ROSEWOOD: return \"Brazilian Rosewood\";\n\t\t\tcase MAHOGANY: return \"Mahogany\";\n\t\t\tcase MAPLE: return \"Maple\";\n\t\t\tcase COCOBOLO: return \"Cocobolo\";\n\t\t\tcase CEDAR: return \"Cedar\";\n\t\t\tcase ADIRONDACK: return \"Adirondack\";\n\t\t\tcase ALDER: return \"Alder\";\n\t\t\tcase SITKA: return \"Sitka\";\n\t\t\tdefault: return \"Any\";\n\t\t}\n\t}\n}",
|
||||
"id": 7,
|
||||
"source": "Head First Objiect-Oriented Analysis and Design",
|
||||
"length": 545
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue