- 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:

- Learn Blockchain Programming with JavaScript
- Node.js+Webpack開發實戰
- Spring 5.0 Microservices(Second Edition)
- Python量化投資指南:基礎、數據與實戰
- Java Web基礎與實例教程(第2版·微課版)
- 新手學Visual C# 2008程序設計
- 高級C/C++編譯技術(典藏版)
- 重學Java設計模式
- Mastering Apache Storm
- Android應用開發實戰(第2版)
- Java EE Web應用開發基礎
- Practical Maya Programming with Python
- 軟件測試技術
- H5頁面設計與制作(全彩慕課版·第2版)
- Python程序員面試算法寶典