Você não pode selecionar mais de 25 tópicos
Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
12345678910111213 |
-
- public class SystemPropertiesTest {
- public static void main(String[] args) {
- boolean pass = Boolean.getBoolean("PASS");
- if (!pass) {
- throw new RuntimeException("failed to get Boolean \"PASS\"");
- }
- String value = System.getProperty("name", null);
- if (!"value".equals(value)) {
- throw new RuntimeException("failed to get name=\"value\": " + value);
- }
- }
- }
|