基本数据类型参数的传值,参数为基本数据类型 class Computer{ int add(int x,int y){ return x+y; } } public class Example4_6 { public static void main(String args[]){ Computer com = new Computer(); int m = 100; int n = 200; int result = com.add(m,n); System.out.println(resul…