/*Check which operating system the program is running. The program explains itself.*/publicclassOSValidator{publicstaticbooleanisWindows(){Stringos=System.getProperty("os.name").toLowerCase();return(os.indexOf("win")>=0);}publicstaticbooleanisMac(){Stringos=System.getProperty("os.name").toLowerCase();return(os.indexOf("mac")>=0);}publicstaticbooleanisUnix(){Stringos=System.getProperty("os.name").toLowerCase();return(os.indexOf("nix")>=0||os.indexOf("nux")>=0);}publicstaticbooleanisSolaris(){Stringos=System.getProperty("os.name").toLowerCase();return(os.indexOf("sunos")>=0);}}