官术网_书友最值得收藏!

Creating a new project

To create a new project, click on File, then New Project, and choose Java Application:

We're going to need to give our project a distinctive name; let's call this one HelloWorld. Then, we can choose a location to put the file. Because this is our very first Java program, we should probably start from as close to scratch as possible. So let's uncheck the Create Main Class option so that NetBeans would give us pretty much a blank project. Then, click on Finish:

NetBeans will set up a filesystem for us. We can navigate this filesystem just like we were in a standard filesystem explorer:

The Source Packages file is where we'll be writing our code. You'll notice under the Libraries file that the JDK is linked, allowing us to access all of its many library resources:

主站蜘蛛池模板: 钟祥市| 闸北区| 米脂县| 紫金县| 临泉县| 万宁市| 绥化市| 莒南县| 邳州市| 来安县| 博乐市| 宜川县| 陆河县| 新余市| 新乐市| 精河县| 胶州市| 交口县| 泸定县| 东山县| 常熟市| 图片| 乡城县| 拜城县| 泗阳县| 嘉黎县| 新化县| 三江| 芜湖县| 留坝县| 达尔| 砀山县| 澜沧| 新营市| 漳州市| 从化市| 绵竹市| 龙陵县| 喀什市| 西乡县| 定边县|