public static String convertColor(String color){
  if (color == null)   return BLACK;
  if (color.length() != 6)   return color;
  if (!color.startsWith("#"))   return "#" + color;
  return color;
}

public static String convertColor ( String color ) { if ( color == null ) return BLACK ; if ( color . length ( ) != 6 ) return color ; if ( ! color . startsWith ( "#" ) ) return "#" + color ; return color ; }
convert color . limited use as it assumes that color is hex string w / o # this method will take a string of hex values and append a # to the beginning if it isn ' t already there .
