Skip to content

Commit 0d8ec22

Browse files
committed
arraylist greet class
1 parent 6def073 commit 0d8ec22

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.github/workflows/javadoc.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ jobs:
2828
uses: peaceiris/actions-gh-pages@v4
2929
with:
3030
github_token: ${{ secrets.GITHUB_TOKEN }}
31-
publish_dir: ./app/build/docs/javadoc
31+
publish_dir: ./app/build/docs/javadoc
32+
force_orphan: true
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package dev.project516.JavaAppTemplate;
2+
3+
import java.util.ArrayList;
4+
5+
public class Greet{
6+
7+
ArrayList<String> greetingList = new ArrayList<String>();
8+
9+
public Greet() {
10+
greetingList.add("Hi");
11+
greetingList.add("Hello");
12+
}
13+
14+
public String greetUser() {
15+
return greetingList.get(0);
16+
}
17+
}

0 commit comments

Comments
 (0)