update all documents

This commit is contained in:
YuCheng Hu 2024-03-15 14:57:02 -04:00
parent 4a3ef4b27d
commit 0b0630ef1b
8 changed files with 83 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

11
in-action/class_rules.md Normal file
View File

@ -0,0 +1,11 @@
# Reminder And Class Rules
## Reminder
All students must participate in the first week of class or they will dropped from the course.
Please complete the Week 1 assignment before the end of day Sunday.
## Assignments and Schedule
Due dates for assignments and discussions are stated in day numbers.
Day 1 is Monday, the first day of the beginning of each weekly session.

View File

@ -0,0 +1,45 @@
# Eclipse Install
## The First Eclipse Project
The steps how to get 1st Eclipse project create and run.
### Launch Eclipse
1. Start Eclipse by running "eclipse.exe" in the Eclipse installed directory.
2. Choose an appropriate directory for your workspace (i.e., where you would like to save your files).
3. If the "Welcome" screen shows up, close it by clicking the "close" button.
### Create a new Java Project
For each Java application, you need to create a project to keep all the source files, classes and relevant resources.
To create a new Java project:
1. Choose "File" menu ⇒ "New" ⇒ "Java project".
2. The "New Java Project" dialog pops up.
a. In the "Project name" field, enter "FirstProject".
b. Check "Use default location".
c. In the "JRE" box, select "Use default JRE (currently 'JDK1.x')". But check the JDK version, you should be using
JDK 1.5 and above.
d. Click "Finish".
### Write a Hello-world Java Program
1. In the "Package Explorer" (left panel) ⇒ Right-click on "FirstProject" (or use the "File" menu) ⇒ New ⇒ Class.
2. The "New Java Class" dialog pops up.
a. In "Name" field, enter "Hello".
b. In "package" field, delete the content if it is not empty.
c. Check "public static void main(String[] args)" box.
d. Click "Finish".
3. The source file "Hello.java" opens on the editor panel. Enter the following codes:
```java
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, world!");
}
}
```

13
in-action/install_jdk.md Normal file
View File

@ -0,0 +1,13 @@
# Java Install
https://www.oracle.com/java/technologies/downloads/
https://adoptium.net/temurin/releases/
### JDK Version
To configure project settings, select IntelliJ IDEA | Preferences on macOS or File | Settings on Windows and Linux from the main menu.
Alternatively, you can press Ctrl+Alt+S to show the IDE settings.
![Eclipse-Temurin-JDK.png](_images/Eclipse-Temurin-JDK.png ':size=680')

View File

@ -0,0 +1,14 @@
# Naming Conventions
In simple terms, a naming convention refers to a framework used for naming your files in a specific way.
## Classes
Class names should be nouns, in mixed cases with the first letter of each internal word capitalized. Interfaces names should also be capitalized just like class names.
## Methods
Methods should be verbs, in mixed case with the first letter lowercase and with the first letter of each internal word capitalized.
## Variables
Variable names should not start with underscore _ or dollar sign $ characters, even though both are allowed.
## Packages
The prefix of a unique package name is always written in all-lowercase ASCII letters and should be one of the top-level domain names, like com, edu, gov, mil, net, org.