经典面试题

1.考察for循环

package face_duixiang_first;

public class Demo{
    public static void main(String[] args){
        int x = 1;
        for(show('a'); show('b') && x<3; show('c')){
        show('d'); 
        x++;
        }
        }
        public static boolean show(char ch){
        System.out.print(ch);
        return true;
        }

}

输出结果:
图片说明

全部评论

相关推荐

nbdy:字太多了,写简历不是写自传,亮点难点技能点列出来就行,要简明扼要
点赞 评论 收藏
分享
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务