Pabs-Git/S1.05.-Java-Utils
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
📄 Description The folder "src" contains the 5 exercises for Level 1 of Java Utils. With the commands you will find in the "README" inside "src" you will create all the ".class" inside the folder "out". At the end of the folder you can find all the exercices statements. 💻 Technologies Used Java 8+ (required for Lambdas and Streams API) IntelliJ IDEA or any Java IDE for code development Command-line terminal (for compiling and running the code) 📋 Requirements Java 8 or higher. An IDE such as IntelliJ IDEA or Eclipse for coding. The ability to compile and run Java code through the terminal. 🛠️ Installation Clone the repository or download the project folder to your local machine. Open the project folder in your IDE (such as IntelliJ IDEA). Ensure that Java 8 or later is set as the SDK in your IDE.▶️ Execution Compiling and Running the Code: Once you have compiled the Java files, you can run them directly from the terminal. You will find the commands that you need to make the it run in each exercise folder. - Exercici 1 Crea una classe que llisti alfabèticament el contingut d'un directori rebut per paràmetre. - Exercici 2 Afegeix a la classe de l’exercici anterior, la funcionalitat de llistar un arbre de directoris amb el contingut de tots els seus nivells (recursivament) de manera que s'imprimeixin en pantalla en ordre alfabètic dins de cada nivell, indicant a més si és un directori (D) o un fitxer (F), i la seva última data de modificació. - Exercici 3 Modifica l’exercici anterior. Ara, en lloc de mostrar el resultat per la pantalla, guarda el resultat en un fitxer TXT. - Exercici 4 Afegeix la funcionalitat de llegir qualsevol fitxer TXT i mostra el seu contingut per consola. - Exercici 5 Ara el programa ha de serialitzar un Objecte Java a un fitxer .ser i després l’ha de desserialitzar.