code: public static String getContnet() {
          String result = "";
          Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
          try {
              result = (String) clipboard.getData(DataFlavor.stringFlavor);
          } catch (Exception ex) {
              //noop
          }
          return result;
      }
docs: Reads the String content of the {@link Clipboard}.
  @return