Just moving to Java, so please forgive this basic question:
After this:
Hashtable<String, Object> ht = (Hashtable<String, Object>) menus.get(position);
String title = (String) ht.get("title");
Boolean isCategory = (Boolean) ht.get("isCatgory");
The value of ht is {isCategory=true, title=Info}, as expected.
The value of title is "Info", as expected.
The value of isCategory is null.
How can I extract the Boolean from the Hashtable?
1 Answer