Skip to content

Commit 2355bf6

Browse files
authored
Update tutorial_50.md
1 parent e7b6fe2 commit 2355bf6

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

code/tutorial_50/tutorial_50.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
# Packages
22

33
#### What / Why?
4-
> A package is a group of class files.
4+
> A package is a group of class files.
5+
56

67
> Packages help organize your code.
78
9+
810
> Packages help keep your code unique from other people so you can resolve conflicts in your code if you have two or more classes with the same name.
911
12+
1013
#### Naming conventions
1114
```java
1215
// after your website
@@ -21,26 +24,30 @@ package jre.companyname.packagename;
2124

2225
#### Compiling packages
2326

24-
>Generic.
27+
>Generic.
28+
2529
```
2630
javac -d c:/path/to/compile/to c:/path/of/source/file.java
2731
```
2832

29-
>Generic, compile all java files in a directory.
33+
>Generic, compile all java files in a directory.
34+
3035
```
3136
javac -d c:/path/to/compile/to c:/path/of/source/*.java
3237
```
3338

34-
>Current directory = './' or simply just '.' so all these are the same.
39+
>Current directory = './' or simply just '.' so all these are the same.
40+
3541
```
3642
javac -d ./ ./*.java
3743
3844
javac -d . ./*.java
3945
4046
javac -d . *.java
41-
```
47+
```
48+
49+
>Compiling from two sources.
4250
43-
>Compiling from two sources.
4451
```
4552
javac -d ./ ./source1/*.java ./source2/*.java
4653
```

0 commit comments

Comments
 (0)