code: private static String printAsShort(String[] kPieces)
      {
          String ret;
  
          String sep = "";
          ret = "";
          for (String s : kPieces)
          {
              ret += sep;
              sep = ", ";
              ret = ret + printAsShort(s);
          }
          return ret;
      }
docs: array version of only show "n:k:x" from each of the long strings: