tag:blogger.com,1999:blog-25636372.post7729205091366344408..comments2024-03-27T22:29:43.828-07:00Comments on Josh's Dev Blog - Java, Jakarta EE, Jython, Oracle, and More...: Honored to be Part of the NetBeans Dream TeamJosh Juneauhttp://www.blogger.com/profile/09428149784665036612noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-25636372.post-63140647782989779552014-12-20T05:23:37.830-08:002014-12-20T05:23:37.830-08:00good luck :)good luck :)N, Varunhttps://www.blogger.com/profile/14844982595144469685noreply@blogger.comtag:blogger.com,1999:blog-25636372.post-851510218702296562014-12-17T02:41:27.914-08:002014-12-17T02:41:27.914-08:00Excellent Terminal tip! (no pun intended ;-)).
He...Excellent Terminal tip! <i>(no pun intended ;-))</i>.<br /><br />Here's a hidden one I recently learned: in the Netbeans Output window, you can provide keyboard input to the program that's running. Just place the cursor on the last line in the Output window and type.<br /><br />For example, if a console program is waiting for a user response, like "Y" or "N":<br /><br />System.out.println("Continue? Y or N");<br />Scanner sc = new Scanner(System.in);<br />String input = sc.next();<br />if(input.equals("Y")) {...} else {...}Henriknoreply@blogger.com