package com.inmind.array01; /* 基本数据类型作为方法参数的操作 断点:break point 断点使用:在要调用的方法的第一行,点上断点 F8:向下执行一行代码 F7:进入方法中 shift+F8:跳出方法 */ public class Test10 { public static void main(String[] args) { //定义2个整数(基本数据类型) int a = 10; int b = 20; //调用一个方法 changValue(a,b); System.out.println(a); System.out.println(b); } public static void changValue(int a,int b) { a = a+a; b = b+b; } }