Created
September 20, 2015 09:03
-
-
Save smamran/0bd8e0d39a1ea2ee527b to your computer and use it in GitHub Desktop.
Operating System and Architecture detection i java code.
This file contains 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 com.netcse.java; | |
public class Main { | |
private static final String OS_NAME = System.getProperty("os.name").toString(); | |
public static void main(String[] args) { | |
System.out.println("Hello world java programming in this world is nothing but java"); | |
System.out.println(OS_NAME); | |
System.out.println(System.getProperty("os.arch").toString()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment