This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.List; | |
| import java.util.function.Predicate; | |
| public class Main { | |
| static final Predicate<String> test = s -> s.length() > 6; | |
| static class Never { | |
| // static final Predicate<String> test = s -> s.length() > 6; | |
| static final List<String> fruit = List.of( | |
| "Apples", "Bananas", "Pears", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*\u002a\u002f\u0070\u0075\u0062\u006c\u0069\u0063\u0020\u0063\u006c\u0061\u0073\u0073\u0020\u004d\u0061\u0069\u006e\u0020\u007b\u0020\u0070\u0075\u0062\u006c\u0069\u0063\u0020\u0073\u0074\u0061\u0074\u0069\u0063\u0020\u0076\u006f\u0069\u0064\u0020\u006d\u0061\u0069\u006e\u0028\u0053\u0074\u0072\u0069\u006e\u0067\u002e\u002e\u002e\u0020\u0061\u0029\u0020\u007b\u000a | |
| String s= "*/public class Main { " + | |
| "public static void main(String... a) {\n" + | |
| "//\n" + | |
| "} " + | |
| "} /*"; | |
| for (char c : s.toCharArray()) { | |
| System.out.printf("\\u%04x", (int) c); | |
| } | |
| //\u000a\u007d\u0020\u007d\u0020\u002f\u002a */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package when; | |
| public class When { | |
| static class when { | |
| boolean when = true; | |
| } | |
| @interface whėn { | |
| String value(); | |
| } |
OlderNewer