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

- 算法基礎(chǔ):打開程序設(shè)計(jì)之門
- SQL Server與JSP動(dòng)態(tài)網(wǎng)站開發(fā)
- MySQL入門很輕松(微課超值版)
- Learning Node.js for .NET Developers
- JSP程序設(shè)計(jì)實(shí)例教程(第2版)
- ASP.NET Core and Angular 2
- Raspberry Pi Robotic Projects
- Node.js Web Development
- Implementing Splunk(Second Edition)
- C++ Data Structures and Algorithm Design Principles
- 編程風(fēng)格:程序設(shè)計(jì)與系統(tǒng)構(gòu)建的藝術(shù)(原書第2版)
- Python Natural Language Processing
- Access 2010數(shù)據(jù)庫(kù)教程(微課版)
- Apple Watch極速開發(fā)
- Multithreading with C# Cookbook(Second Edition)