下面代码的运行结果是( )Public class Test {Public static void main(String] args) {Int] x = {1, 2, 3, 4, 5}; increase(x); int] y = {1, 2, 3, 4, 5};Increase(y0]); System.out.println(x0] + " " + y0]); }Public static void increase(int] x) {For (int i = 0; i < x.length; i++)Xi]++;}Public static void increase(int y) { y++; } }
选项:
A:0 0
B:1 1
C:2 2
D:2 1
发布时间:2024-04-03 00:05:06