HOME      BLOG       FORUMS      CONTACT       ABOUT

Gets operating system name using java

public class SystemExample {
	public static void main(String[] args) {
		String value = System.getProperty("os.name");

		System.out.println(value);
	}
}

Share

Tags: , , ,


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button

Leave a Reply