How to copy a text from java code in cygwin? -
i need value of selected item , copy java application in cygwin. my problem don't know how copy text java application in cygwin. this portion of code: private void jcombobox1actionperformed(java.awt.event.actionevent evt) { string cmmd = "moshell"+jcombobox1.getselecteditem() /*i need here :how write text (cmmd) in cygwin?*/ } i'm debutant in programming. can me resolve problem. thank you. if understand question, same way write text console, // need here :how write text (cmmd) in cygwin? string cmmd = "moshell"+jcombobox1.getselecteditem(); system.out.println(cmmd);