大家看看这道题,应该怎么解决1. public class Test {2. int x= 12;3. public void method(int x) {4. x+=x;5. System.out.println(x);6. }7. } Given:34. Test t = new Test();35. t.method(5);What is the output from line 5 of the Test class?

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/07 08:42:35
大家看看这道题,应该怎么解决1. public class Test {2. int x= 12;3. public void method(int x) {4. x+=x;5. System.out.println(x);6. }7. } Given:34. Test t = new Test();35. t.method(5);What is the output from line 5 of the Test class?

大家看看这道题,应该怎么解决1. public class Test {2. int x= 12;3. public void method(int x) {4. x+=x;5. System.out.println(x);6. }7. } Given:34. Test t = new Test();35. t.method(5);What is the output from line 5 of the Test class?
大家看看这道题,应该怎么解决
1. public class Test {
2. int x= 12;
3. public void method(int x) {
4. x+=x;
5. System.out.println(x);
6. }
7. } Given:
34. Test t = new Test();
35. t.method(5);
What is the output from line 5 of the Test class?

大家看看这道题,应该怎么解决1. public class Test {2. int x= 12;3. public void method(int x) {4. x+=x;5. System.out.println(x);6. }7. } Given:34. Test t = new Test();35. t.method(5);What is the output from line 5 of the Test class?
先去看看java数组的题目吧,这道题的答案应该对你不难