Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

public class Main {

    public static void main(String[] args) {

        System.setProperty("java2s1", "true");
        System.setProperty("java2s2", "abcd");

        boolean bool1 = Boolean.getBoolean("java2s1");
        boolean bool2 = Boolean.getBoolean("java2s2");

        System.out.println("boolean value of system property java2s1 is " + bool1);
        System.out.println("boolean value of system property java2s2 is " + bool2);

    }
}