Browse Source

commit main actualizado

master
JoanMoncho 2 years ago
parent
commit
099ec53962
2 changed files with 24 additions and 21 deletions
  1. +24
    -19
      .idea/workspace.xml
  2. +0
    -2
      src/Main.java

+ 24
- 19
.idea/workspace.xml View File

@ -1,16 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="4717f6a0-a6f8-4348-95fd-a166783ad8ed" name="Changes" comment="">
<change afterPath="$PROJECT_DIR$/.gitignore" afterDir="false" />
<change afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/.idea/modules.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/.idea/vcs.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/Actividad8.1.iml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
<change afterPath="$PROJECT_DIR$/src/Main.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/src/Persona.java" afterDir="false" />
<list default="true" id="4717f6a0-a6f8-4348-95fd-a166783ad8ed" name="Changes" comment="commit añadir main">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -38,15 +30,15 @@
<option name="hideEmptyMiddlePackages" value="true" /> <option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" /> <option name="showLibraryContents" value="true" />
</component> </component>
<component name="PropertiesComponent"><![CDATA[{
"keyToString": {
"ASKED_ADD_EXTERNAL_FILES": "true",
"RunOnceActivity.OpenProjectViewOnStart": "true",
"RunOnceActivity.ShowReadmeOnStart": "true",
"WebServerToolWindowFactoryState": "false",
"nodejs_package_manager_path": "npm"
<component name="PropertiesComponent">{
&quot;keyToString&quot;: {
&quot;ASKED_ADD_EXTERNAL_FILES&quot;: &quot;true&quot;,
&quot;RunOnceActivity.OpenProjectViewOnStart&quot;: &quot;true&quot;,
&quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
&quot;WebServerToolWindowFactoryState&quot;: &quot;false&quot;,
&quot;nodejs_package_manager_path&quot;: &quot;npm&quot;
} }
}]]></component>
}</component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" /> <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
<component name="TaskManager"> <component name="TaskManager">
<task active="true" id="Default" summary="Default task"> <task active="true" id="Default" summary="Default task">
@ -55,8 +47,17 @@
<option name="number" value="Default" /> <option name="number" value="Default" />
<option name="presentableId" value="Default" /> <option name="presentableId" value="Default" />
<updated>1669406403496</updated> <updated>1669406403496</updated>
<workItem from="1669406404738" duration="1182000" />
<workItem from="1669406404738" duration="2054000" />
<workItem from="1669457144298" duration="624000" />
</task> </task>
<task id="LOCAL-00001" summary="commit añadir main">
<created>1669409987515</created>
<option name="number" value="00001" />
<option name="presentableId" value="LOCAL-00001" />
<option name="project" value="LOCAL" />
<updated>1669409987515</updated>
</task>
<option name="localTasksCounter" value="2" />
<servers /> <servers />
</component> </component>
<component name="TypeScriptGeneratedFilesManager"> <component name="TypeScriptGeneratedFilesManager">
@ -73,4 +74,8 @@
</map> </map>
</option> </option>
</component> </component>
<component name="VcsManagerConfiguration">
<MESSAGE value="commit añadir main" />
<option name="LAST_COMMIT_MESSAGE" value="commit añadir main" />
</component>
</project> </project>

+ 0
- 2
src/Main.java View File

@ -2,7 +2,6 @@ import java.io.File;
import java.io.FileOutputStream; import java.io.FileOutputStream;
import java.io.IOException; import java.io.IOException;
import java.io.ObjectOutputStream; import java.io.ObjectOutputStream;
import java.util.ArrayList;
public class Main { public class Main {
public static void main(String[] args) throws IOException { public static void main(String[] args) throws IOException {
@ -10,7 +9,6 @@ public class Main {
File fichero = new File("C:\\Users\\JoanMoncho\\Documents\\Personas.dat"); File fichero = new File("C:\\Users\\JoanMoncho\\Documents\\Personas.dat");
FileOutputStream fos = new FileOutputStream(fichero); FileOutputStream fos = new FileOutputStream(fichero);
ObjectOutputStream oos = new ObjectOutputStream(fos); ObjectOutputStream oos = new ObjectOutputStream(fos);
//ArrayList<Persona> personas = new ArrayList<>();
String[] nombres= {"Joan","Sergi","Hector","Paco"}; String[] nombres= {"Joan","Sergi","Hector","Paco"};
String[] apellidos = {"Moncho","Signes","Ferrandiz","Mengual"}; String[] apellidos = {"Moncho","Signes","Ferrandiz","Mengual"};


Loading…
Cancel
Save