forked from processing/processing-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcase.xml
More file actions
executable file
·69 lines (48 loc) · 1.07 KB
/
case.xml
File metadata and controls
executable file
·69 lines (48 loc) · 1.07 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
65
66
67
68
69
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<name>case</name>
<category>Control</category>
<subcategory>Conditionals</subcategory>
<usage>Web & Application</usage>
<example>
<image></image>
<code><![CDATA[
char letter = 'B';
switch(letter) {
case 'A':
println("Alpha"); // Does not execute
break;
case 'B':
println("Bravo"); // Prints "Bravo"
break;
default:
println("Zulu"); // Does not execute
break;
}
]]></code>
</example>
<description><![CDATA[
Denotes the different labels to be evaluated with the parameter in the <b>switch</b> structure.
]]></description>
<syntax>
case <c>label</c>: <c>statements</c>
</syntax>
<parameter>
<label>label</label>
<description><![CDATA[byte, char, or int]]></description>
</parameter>
<parameter>
<label>statements</label>
<description><![CDATA[one or more valid statements]]></description>
</parameter>
<returns></returns>
<related>
switch
default
break
</related>
<availability>1.0</availability>
<type>Keyword</type>
<partof>Java</partof>
<level>extended</level>
</root>