In this module, you'll learn how to navigate a command-line shell, iterate through an edit-build-test cycle locally from the command-line, and develop code using an Integrated Development Environment (IDE).
The command line is a text-based interface to interact with your computer. Different operating systems offer different terminal options:
pwd
- Shows current working directory (Print Working Directory)ls
- Lists current contents of working directory
dir
on Windows Command Promptls -a
displays all contents including hidden filescd
- Change directory
cd ..
moves one directory upcd ~
moves directly to home directoryclear
- Clear the screen
cls
on WindowsCommand-K
shortcut on MacOSmkdir
- Create a directorytouch
- Creates a file
echo > filename
for Windows Command Promptvim
- Opens a file with vim (will create if the file does not exist)rm
- Remove a file
del
on Windows Command Promptrm -r
for directories and everything insideHere's an example of creating a simple Java project from the command line:
mkdir MyJavaProject
cd MyJavaProject
mkdir src
touch src/HelloWorld.java
# Now edit HelloWorld.java with an editor or IDE
IntelliJ IDEA is a powerful IDE (Integrated Development Environment) that provides tools to help you write, test, and debug your Java code efficiently.
Ctrl+Space
or Cmd+Space
: Code completionAlt+Enter
or Option+Enter
: Show intention actions/quick fixesShift+F10
or Ctrl+R
: Run current configurationCtrl+/
or Cmd+/
: Comment/uncomment current lineCtrl+D
or Cmd+D
: Duplicate current lineA typical workflow in IntelliJ involves:
This guided project will walk you through:
By following along, you'll gain practical experience with the complete edit-build-test cycle that professional developers use daily.