public static boolean isWindowsXp(){
  return osName.indexOf("Windows") > -1 && osVersion.equals("5.1");
}

public static boolean isWindowsXp ( ) { return osName . indexOf ( "Windows" ) > - 1 && osVersion . equals ( "5.1" ) ; }
is operating system windows xp ?
