dio porco?

This commit is contained in:
sco
2022-05-23 17:44:59 +02:00
parent b586c8d3f2
commit 183736b4e6
9 changed files with 77 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
+5
View File
@@ -0,0 +1,5 @@
<component name="ProjectCodeStyleConfiguration">
<state>
<option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
</state>
</component>
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="17" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/algoritmi_strutturedati.iml" filepath="$PROJECT_DIR$/algoritmi_strutturedati.iml" />
</modules>
</component>
</project>
Generated
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>
+12
View File
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<module version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$/intro">
<sourceFolder url="file://$MODULE_DIR$/intro" isTestSource="false" packagePrefix="intro" />
<sourceFolder url="file://$MODULE_DIR$/intro/helloWorld" isTestSource="false" />
</content>
<orderEntry type="jdk" jdkName="17" jdkType="JavaSDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
+5
View File
@@ -0,0 +1,5 @@
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Helo World kek");
}
}
+4
View File
@@ -0,0 +1,4 @@
package intro.persone;
public enum Cittadinanza {
Italiana, EU, ExtraEU
}
+23
View File
@@ -0,0 +1,23 @@
package intro.persone;
public class Persona {
private String nome;
private String cognome;
private intro.persone.Cittadinanza cittadinanza;
public Persona(String nome, String cognome, intro.persone.Cittadinanza cittadinanza) {
this.nome = nome;
this.cognome = cognome;
this.cittadinanza = cittadinanza;
}
public String getInfo() {
return "Nome: "+this.nome+"\nCognome: "+this.cognome+"\nCitt: "+this.cittadinanza;
}
public static void main(String[] args) {
Persona p = new Persona("dio","maiale", intro.persone.Cittadinanza.ExtraEU);
Persona p1 = new Persona("mario", "rossi", intro.persone.Cittadinanza.EU);
System.out.println(p.getInfo());
System.out.println(p1.getInfo());
}
}