排查问题时发现了一段粗心的代码:
大家认真读完能给出正确结果吗?
private static boolean test(){
int i=10;
{
i--;
}while(i>0);
return true;
}
大家认真读完能给出正确结果吗?