public static boolean isSolaris(){
  return osName.indexOf("Solaris") > -1 || osName.indexOf("SunOS") > -1;
}

public static boolean isSolaris ( ) { return osName . indexOf ( "Solaris" ) > - 1 || osName . indexOf ( "SunOS" ) > - 1 ; }
is operating system solaris ?
