code: public static boolean isWindows9X() {
  		String os = System.getProperty("os.name").toLowerCase();
  		return os.equals("windows 95") || os.equals("windows 98");
  	}
docs: Checks the Operating System.
  
  @return true if the current os is Windows