-
-
Notifications
You must be signed in to change notification settings - Fork 173
Expand file tree
/
Copy pathdefault.xml
More file actions
executable file
·64 lines (44 loc) · 1.11 KB
/
default.xml
File metadata and controls
executable file
·64 lines (44 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<name>default</name>
<category>Control</category>
<subcategory>Conditionals</subcategory>
<usage>Web & Application</usage>
<example>
<image></image>
<code><![CDATA[
char letter = 'F';
switch(letter) {
case 'A':
println("Alpha"); // Does not execute
break;
case 'B':
println("Bravo"); // Does not execute
break;
default:
println("Zulu"); // Prints "Zulu"
break;
}
]]></code>
</example>
<description><![CDATA[
Keyword for defining the default condition of a <b>switch</b>. If none of the case labels match the <b>switch</b> parameter, the statement(s) after the <b>default</b> syntax are executed. Switch structures don't require a <b>default</b>.
]]></description>
<syntax>
default: <c>statements</c>
</syntax>
<parameter>
<label>statements</label>
<description><![CDATA[one or more valid statements to be executed]]></description>
</parameter>
<returns></returns>
<related>
switch
break
case
</related>
<availability>1.0</availability>
<type>Keyword</type>
<partof>Java</partof>
<level>Extended</level>
</root>