JavaでMapの拡張For文の書き方を忘れてしまったのでメモ的に記載。
SampleController.java
for(Map.Entry<Integer, Entity> entity : map.entrySet()) {
System.out.println(entity.getKey());
System.out.println(entity.getValue());
}
Go to list of users who liked
More than 3 years have passed since last update.
JavaでMapの拡張For文の書き方を忘れてしまったのでメモ的に記載。
for(Map.Entry<Integer, Entity> entity : map.entrySet()) {
System.out.println(entity.getKey());
System.out.println(entity.getValue());
}
Register as a new user and use Qiita more conveniently
Go to list of users who liked