Simple you use the getProperty function. In this example I get the OS name and store it in the String os, then in the main method I print the OS to the console


public class GetOS {

public...