I have the following Map:
Map<Integer, String> checkNameMap
I would like to loop through this Map and and get the strings from it and concatenate these strings in one big string by putting -x in front of all of them.
If the strings that I get from this map are:
The big string that I want to create will be like
-x car -x bus -x plane -x ship
Can you please show me how I can do it?