- Java Programming for Beginners
- Mark Lassoff
- 173字
- 2021-07-02 15:22:42
Creating a Java class
Once we have created a new project, we should see the Projects, Files, and Services tabs like I have in the following image. Let's look at the Files tab. Whereas the Projects tab is a bit of an abstraction, the Files tab shows us what's actually contained within the filesystem where our HelloWorld project lives:

Most importantly, you'll see that the src file here has no files in it. That's because there's no source code associated with our project, so right now it won't do anything. To remedy this, right-click on src, choose New, and then Java Class...:

We're going to name our Java Class HelloWorld, just like the name of the project because it is our main class where the program should be entered and start from. Everything else is going to work just fine here for now, so click on Finish and NetBeans will create HelloWorld.java for us. A .java file is essentially a text file, but it should only contain Java code and comments:

- Vue 3移動Web開發(fā)與性能調(diào)優(yōu)實戰(zhàn)
- DBA攻堅指南:左手Oracle,右手MySQL
- Visual FoxPro 程序設(shè)計
- Vue.js 3.x從入門到精通(視頻教學版)
- Architecting the Industrial Internet
- C語言程序設(shè)計實踐教程
- 游戲程序設(shè)計教程
- Scala編程實戰(zhàn)(原書第2版)
- Test-Driven Development with Django
- 從零學Java設(shè)計模式
- 數(shù)據(jù)結(jié)構(gòu)與算法詳解
- 軟件工程實用教程 (第3版)
- CorelDRAW X6中文版應(yīng)用教程(第二版)
- 零基礎(chǔ)Linux從入門到精通
- 一個APP的誕生:從零開始設(shè)計你的手機應(yīng)用