Dear TeaVM team,
Do you know if a hashmap can be used in a std:foreach loop?.
<std:foreach var="optName2" index="r" in="Arrays.asList(mpStrMultiChoice.get(p))">
</std:foreach>
The p is the index of an outer std:for each loop. The p is used as a key in the hashmap to extract a string array that is converted to a list via "Arrays.toList".
I use the following imports in the html template:
<?import java.util.Arrays?>
<?import java.util.Map?>
<?import java.util.HashMap?>
mpStrMultiChoice is a hashmap defined in the class file:
public Map<Integer,String[]> mpStrMultiChoice = new HashMap<>();
I get the error when compiling:
Method get(java.lang.Object) is not applicable to given arguments
Thanks.