代码如下:
User user = userDao.Get(1);
do
{
// processing
// get the next user
//
user = UserDao.GetNext(user.Id);
if(user == null)
continue; // will this work?????????????
}
while ( user != null)
如果它工作了,它会转到do语句的顶部,而用户是空的,所以事情会中断吗?
相似问题