Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.Properties;

public class Main {

    public static void main(String[] args) {
        System.out.println(System.getProperty("java.runtime.version"));

        Properties p = System.getProperties();
        p.put("java.runtime.version", "Java Runtime 1.6.0");
        System.setProperties(p);

        System.out.println(System.getProperty("java.runtime.version"));
    }
}