1.简单数据类型
简单数据类型是通过值传递,不能被其他方法改变,
举例
public class Test8 {
public static void main(String[] args) {
// TODO Auto-generated method stub
int a =12;
Test8.test(a);
System.out.println(a);
}
static void test(int a){
a++;
}
}
pu1.简单数据类型
简单数据类型是通过值传递,不能被其他方法改变,
举例
public class Test8 {
public static void main(String[] args) {
// TODO Auto-generated method stub
int a =12;
Test8.test(a);
System.out.println(a);
}
static void test(int a){
a++;
}
}
pu