java中for循环冒号的用法

java中for循环冒号的用法:
用于循环中集合元素的遍历
for(元素变量(User user):元素集合(List users))
{
程序块;(System.out.println(user))
}

你可能感兴趣的:(java中for循环冒号的用法)