Tuesday 26 August 2014

Get the Operating System Version

Use the property "os.version" to get the operating system version.

public class GetProperty {
    public static void main(String args[]){
        System.out.println(System.getProperty("os.version"));
    }
}

Output
6.1


                                                             Home

No comments:

Post a Comment