Dim map1 As Map
Dim list1 As List
map1.Initialize
list1.Initialize
list1.Add("hello")
list1.Add(123)
map1.Put("key1",list1)
list1.clear
list1.Add("hello")
list1.Add(456)
map1.Put("key2",list1)
'File.WriteMap(File.DirInternal,"test",map1) ' uncomment these two lines and you get an error below
'map1=File.ReadMap(File.DirInternal,"test") '
For j=0 To map1.Size-1
list1=map1.GetValueAt(j) ' java.lang.ClassCastException: java.lang.String cannot be cast to java.util.List
Log (list1)
Next