Map of string and list of integer with apex repeat in visualforce page

2018-06-19 14:30:40

i have one map as following :

public lisT testIntList{get;set;}

public list departmentsToShow{get;set;}

public map> Dep_listToShow{get;set;}

which will show the integer list based on department name.

in visual force page when i write following :

{!IntVal} --

its giving me following output : 1 -- 2 -- 3 -- 4 -- 5 -- 6

tub when i write following :

{!IntVal}

its giving me following output : [1, 2, 3, 4, 5, 6] but i need this output : 1 -- 2 -- 3 -- 4 -- 5 -- 6

i want to loop the list of integer from map. how to do that?

thanks in advance.