课程: Learning Java 17
How to build and execute Java programs
- [Instructor] There are a few different ways you can build and execute Java programs. One way is with the text editor and the command line. You write your code in the text editor, such as Sublime or Atom, and then you compile and execute your code using the command line. For example, you might use the text editor to write some code that displays, "Hello" in the console. Then, you type in the commands in the command line to build and execute your code. However, as your program gets larger and larger, it can take more time to build and execute your code in this way. It can also get harder to keep track of all the files with the changes you need to rebuild or recompile. It's often faster to use something called an IDE. IDE stands for integrated development environment, and it's a specialized software for building and running programs. The main difference between these is that the IDE is specifically built for building and executing code. Given that, it has lots of useful built in tools that makes the software development process a lot easier. For example, an IDE has a GUI, or a graphical user interface, meaning, we will don't have to type in commands manually in order to build or run our code. We can just click a button for our code to compile and execute. It also contains a debugger, which we can use to figure out errors in our program. Similar to how we use Photoshop to edit our photos, we can use a special software and IDE to edit and run our code. It makes writing code a lot easier and faster. There are many different IDEs that you can use to develop applications, but in this course, we'll be using IntelliJ, which is made by a company called JetBrains. This is an IDE that's meant specifically for Java development. IntelliJ has two versions, a paid ultimate version, and a free community version. The community version will work fine for this course. Let's download it. Once you have it downloaded and installed, you'll be to set up your first Java program. Let's install it. I already have it installed, so I won't proceed with this process. And it's installed. We're ready to set up our first Java program.
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。