CodeGym /Courses /Java Multithreading /Practice using enum

Practice using enum

Java Multithreading
Level 5 , Lesson 2
Available

"Hi, Amigo!"

"Bilaabo came up with a task for you. Enjoy, my friend:"

7
Task
Java Multithreading, level 5, lesson 2
Locked
New functionality!
Using an enum, implement the getLetterPosition() method, which must return a letter's position. The position of the letter A is 1.
14
Task
Java Multithreading, level 5, lesson 2
Locked
Don't take the car to the shop!
Initialize the wheels field using data from loadWheelNamesFromDB(). Throw an exception if the data is invalid. Hint: if wheels aren't right, then it's not a car! Don't change the signatures.
28
Task
Java Multithreading, level 5, lesson 2
Locked
Your own enum
Make Column implement the Columnable interface. See the Javadocs for a description of its methods. Implement the logic of the Column.getVisibleColumns() method. The Column.configureColumns() method is already implemented. Don't change it. Don't create additional fields.
Comments (4)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
26 February 2022
// TreeMap<Integer,Column> treeMap=new TreeMap<>(); // for(int i=0;i<realOrder.length;i++){ // if(realOrder[i]!=-1){ // treeMap.put(realOrder[i],Column.values()[i]); // } // } // List<Column> result=new LinkedList<>(treeMap.values()); // return result;
Jurij Thmsn Level 29, Flensburg, Germany
1 November 2021
Spent 4 hours on 3rd exercise 😳 so tough! My brain feels like a knot now. I think a few extenisve comments would have helped to understand better.
Henrique Level 41, São Paulo, Brazil
3 August 2020
The conditions in this Multithreading quest are very confusing in every level. In the quests before, the tasks were written in a much more comprehensible way.
Tom Level 41, San Jose, Sweden
26 March 2021
totally agree with u!!