Done Java part

This commit is contained in:
Claudio Maggioni 2023-09-22 20:39:26 +02:00
parent 92f533fba3
commit 20bcf7bea0
8 changed files with 25 additions and 12 deletions

6
.idea/jpa-buddy.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JpaBuddyIdeaProjectConfig">
<option name="renamerInitialized" value="true" />
</component>
</project>

View File

@ -8,4 +8,7 @@
<option name="languageLevel" value="ES6" />
</component>
<component name="ProjectRootManager" version="2" project-jdk-name="1.8" project-jdk-type="JavaSDK" />
<component name="ProjectType">
<option name="id" value="jpab" />
</component>
</project>

View File

@ -9,19 +9,19 @@ Go to [this Lab on iCorsi](https://www.icorsi.ch/course/view.php?id=16963).
Property | Value
------------ | -------------
First Name | ...
Last Name | ...
First Name | Claudio
Last Name | Maggioni
## Submission Checklist
Please complete this checklist (turn [ ] into [X]) before you submit:
- [ ] I completed the above Submission Info
- [ ] I solved the Java part:
- [ ] I implemented the Java code
- [ ] I completed java/compile.sh
- [ ] I completed java/run.sh
- [ ] I completed java/disassemble.sh
- [x] I completed the above Submission Info
- [x] I solved the Java part:
- [x] I implemented the Java code
- [x] I completed java/compile.sh
- [x] I completed java/run.sh
- [x] I completed java/disassemble.sh
- [ ] I solved the C part:
- [ ] I implemented the C code
- [ ] I completed c/compile.sh

BIN
java/Main.class Normal file

Binary file not shown.

View File

@ -1 +1,5 @@
//TODO Write Java code
public class Main {
public static void main(final String[] args) {
System.out.println(System.getProperty("user.name"));
}
}

View File

@ -1,3 +1,3 @@
#!/bin/sh
# TODO Command to compile Main.java with javac
javac ./Main.java

View File

@ -1,3 +1,3 @@
#!/bin/sh
# TODO Command to disassemble the compiled Java program with javap
javap -c ./Main.class

View File

@ -1,3 +1,3 @@
#!/bin/sh
# TODO Command to run the compiled Java program with java
java -cp . Main