aboutsummaryrefslogtreecommitdiff
path: root/jMusicHub.java
diff options
context:
space:
mode:
Diffstat (limited to 'jMusicHub.java')
-rw-r--r--jMusicHub.java19
1 files changed, 9 insertions, 10 deletions
diff --git a/jMusicHub.java b/jMusicHub.java
index e79d768..363695e 100644
--- a/jMusicHub.java
+++ b/jMusicHub.java
@@ -2,8 +2,7 @@ import java.util.*;
import java.io.*;
import java.text.*;
-/** <h1>jMusicHub</h1>
- *
+/**
* The jMusicHub class is basically the app.
* It is used to launch the whole process.
*
@@ -14,7 +13,7 @@ import java.text.*;
public class jMusicHub {
- /** <h2>addSong</h2>
+ /**
* addSong is used to add songs thanks to the "c" option
* @param scan Scanner Object
*/
@@ -54,7 +53,7 @@ public class jMusicHub {
}
}
-/** <h2>addAudioBook</h2>
+/**
* addAudioBook is used to add songs thanks to the "l" option
* @param scan Scanner Object
*/
@@ -99,7 +98,7 @@ public class jMusicHub {
}
}
-/** <h2>addAlbum</h2>
+/**
* addAlbum is used to add albums thanks to the "a" option
* @param scan Scanner Object
*/
@@ -140,7 +139,7 @@ public class jMusicHub {
}
}
- /** <h2>addPlaylist</h2>
+ /**
* addPlaylist is used to add playlist thanks to the "p" option
* @param scan Scanner Object
*/
@@ -206,7 +205,7 @@ public class jMusicHub {
}
}
-/**<h2>save</h2>
+/**
* save is used by the command "s"
* It is used to serialize (save) arrays of a list into the type's file.i
* Exemple : save("nameOfTheFile", elements)
@@ -237,7 +236,7 @@ public class jMusicHub {
}
}
-/**<h2>listById</h2>
+/**
* list is called when using the "AB", "S", "A" and "P" commands in order to list the elements in respective files.
* @param filename String
* */
@@ -401,9 +400,9 @@ public static void listAudioBooksByAuthor(){
catch (ClassNotFoundException ex) {System.out.println("ClassNotFoundException is caught");}
}
-/**<h2>extract</h2>
+/**
* Extract is used to print the content of the files and put them in the ArrayList used to add elements.
- * @param String filename
+ * @param filename String
* */
@SuppressWarnings("rawtypes")
public static ArrayList extract(String filename){