Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Helper class to avoid hardcoding the difficulty names in the HungarianBook class,
- * but store them in the list for faster accessing an easier modifying
- */
- public class DifficultyUtils {
- // Create a static single line list with 3 names of difficulties
- // according to the difficulty range 1-3
- public static List<String> difficultyNames = Arrays.asList("Basic", "Intermediate", "Hard");
- /*
- * Method to
- */
- public static String getDifficultyLevel(int difficultyLevel){
- return difficultyNames.get(difficultyLevel-1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement