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" /> <option name="languageLevel" value="ES6" />
</component> </component>
<component name="ProjectRootManager" version="2" project-jdk-name="1.8" project-jdk-type="JavaSDK" /> <component name="ProjectRootManager" version="2" project-jdk-name="1.8" project-jdk-type="JavaSDK" />
<component name="ProjectType">
<option name="id" value="jpab" />
</component>
</project> </project>

View file

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

View file

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

View file

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