Demo entry 6635752

Method

   

Submitted by anonymous on Aug 19, 2017 at 16:03
Language: Java. Code size: 268 Bytes.

public static String getOperatingSystem(){
		String operatingSystem = new String();

		if(isLinux())
			operatingSystem = "Linux";
		if(isWindows())
			operatingSystem = "Windows";
		if(isMac())
			operatingSystem = "Mac";
		
		return operatingSystem;
	}
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).