Line | |
---|
1 | package testcode;
|
---|
2 |
|
---|
3 | import java.nio.charset.StandardCharsets;
|
---|
4 |
|
---|
5 | /**
|
---|
6 | * Tests static function calls and references
|
---|
7 | */
|
---|
8 | public class SpecialExpressions {
|
---|
9 |
|
---|
10 | /**
|
---|
11 | * @param args the arguments of the call.
|
---|
12 | */
|
---|
13 | static public void main(String[] args) {
|
---|
14 | int c;
|
---|
15 | System.out.println((c = 1) > 0);
|
---|
16 |
|
---|
17 | System.out
|
---|
18 | .println(new String(new byte[] { 80 }, StandardCharsets.UTF_8));
|
---|
19 | System.out.println(String.valueOf(5d));
|
---|
20 | System.out.println(String.valueOf(Double.valueOf(6)));
|
---|
21 | }
|
---|
22 |
|
---|
23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.