This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes how to run code in netbeans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "how to run code in netbeans" Watch "how to run code in netbeans" New topic

how to run code in netbeans

Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 1008
Jeanne Boyarsky wrote:System.out.println prints to system out which is a console or log file somewhere on your server. It is not the browser.

Also note that it is traditional for class names to begin with an uppercase letter in Java.

Thanks for your guidance, again here is a java code to retrieve data from database:

i want to use this code using netbeans, i add a class file into my project, and than how can i call that class file??
in simple words: how can i run this code using netbeans??

Thanks in advance.
Peter Johnson

Joined: May 14, 2008
Posts: 5850

You should be able to right-click the .java source file and select Run File.

JBoss In Action
I agree. Here's the link:
subject: how to run code in netbeans