The task instructions are very ambiguous. Could someone please tell me EXACTLY what the task requires?
The Map params - does it contain two parameters per <String><String>?
Or are the parameters for the query ONLY in the value <String> not the key <String>?
Thanks in advance.
BlueJavaBanana
Level 37
Can someone please post the specific instructions for this task?
Resolved
Comments (4)
- Popular
- New
- Old
You must be signed in to leave a comment
dnlklnhfr
6 July 2020, 13:36
I'm not exactly sure if I understand your question correctly.
The Map contains two parameters <String><String> as already stated in the code.
so each entry is a key-value-pair where the value can be null.
I solved this in 5 lines of code ... so pretty simple - don't overthink it :)
+2
BlueJavaBanana
6 July 2020, 13:51
So the full query {name=Johnson, country=United States, city=Los Angeles, age=null} is in the map value?
Did yo assume you would need to iterate through a map or just complete for one query?
0
dnlklnhfr
6 July 2020, 14:27solution
This task should simulate some kind of SQL-query-builder.
So referring to the example the map contains four entries as key = value:
name = "Johnson"
country = "United States"
city = "Los Angeles"
age = null
So you definitely need to iterate through the map of course and ignore null-values.
+2
BlueJavaBanana
6 July 2020, 14:33
Thank you, I do wish that was written more clearly in the task!
0