我如何打印所有的值從下面的HashMap如何使用循環
ServletContext appScope = request.getServletContext();
Map<String, List<String>> onLine = (HashMap<String, List<String>>)appScope.getAttribute("User");
if(onLine != null) {
out.print(onLine.get("1"));
}
這個答案其實是錯誤的 –