I am trying to copy a text file using scanner to the clipboard. Can someone tell me what my clipboard.setContents method should look like?

This is what I have now:


import java.awt.Toolkit;...