
Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Esta página no es visible en la vista previa
¡No te pierdas las partes importantes!

Develop a Java application that reads the contents of each of the files located in a given folder, identify the format and assign the corresponding extension according to the established file signature. The file formats that the application must recognize are: File extension File description 1 rar RAR file format 2 7 z 7 - Zip file format 3 bmp Bitmap image format 4 jpg JPEG image format 5 png PNG image format 6 gif GIF image format 7 pdf PDF document format 8 mp3 MP3 audio format 9 m4a AAC audio format 10 zip PKZIP file format Generate an output file with the name “Report.csv” and the next structure: Old filename New filename