I think I finished it...

This commit is contained in:
Cutieguwu
2026-02-15 17:39:48 -05:00
parent 0fad1b74bc
commit 79629391c5
33 changed files with 215 additions and 389 deletions

1
demo/.java-version Normal file
View File

@@ -0,0 +1 @@
21

8
demo/Nest.toml Normal file
View File

@@ -0,0 +1,8 @@
dependencies = []
[workspace]
default_package = "main"
[meta]
name = "demo"
version = "0.1.0"

6
demo/src/main/Prey.toml Normal file
View File

@@ -0,0 +1,6 @@
[package]
entry_point = ""
[meta]
name = "main"
version = "0.1.0"

View File

@@ -0,0 +1,10 @@
public class Main {
public static void main(String[] args) {
System.out.println("Hello, world!");
}
public static int add(int a, int b) {
return a + b;
}
}

6
demo/src/test/Prey.toml Normal file
View File

@@ -0,0 +1,6 @@
[package]
entry_point = ""
[meta]
name = "test"
version = "0.1.0"

View File

@@ -0,0 +1,10 @@
public class MainTest {
public static void main(String[] args) {
testAdd();
}
public static void testAdd() {
assert Main.add(2, 2) == 4;
}
}

BIN
demo/target/Main.class Normal file

Binary file not shown.

BIN
demo/target/MainTest.class Normal file

Binary file not shown.