第二次的作业
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了第二次的作业相关的知识,希望对你有一定的参考价值。
1. First program doesn‘t exist a state whose i = 0. Second program can only return first 0 in x.
2. x = null Expected = Null PointerException
x = null Expected = Null PointerException
3. x = [2] Expected = -1
x = [2] Expected = -1
4. x = [2, 3, 5] ; y = 5 Expected = 2
x = [0, 1, 2] Expected = 0
以上是关于第二次的作业的主要内容,如果未能解决你的问题,请参考以下文章