dio porco?
This commit is contained in:
Generated
+8
@@ -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
|
||||||
Generated
+5
@@ -0,0 +1,5 @@
|
|||||||
|
<component name="ProjectCodeStyleConfiguration">
|
||||||
|
<state>
|
||||||
|
<option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
|
||||||
|
</state>
|
||||||
|
</component>
|
||||||
Generated
+6
@@ -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>
|
||||||
Generated
+8
@@ -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
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
@@ -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>
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
public class HelloWorld {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
System.out.println("Helo World kek");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
package intro.persone;
|
||||||
|
public enum Cittadinanza {
|
||||||
|
Italiana, EU, ExtraEU
|
||||||
|
}
|
||||||
@@ -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());
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user