JAVA: How to pro-grammatically determine operating system?

You can use:
System.getProperty("os.name")
Here is an example:


class ShowProperties {
    public static void main(String[] args) {
        System.getProperties().list(System.out);
    }
}

Comments

Popular posts from this blog

gspread error:gspread.exceptions.SpreadsheetNotFound

P and q values in RNA Seq

Update the TOC (table of content) of MS Word .docx documents with Python