摘要: public class RunoobTest { public static void main(String[]args) { int a = 10, b = 20; swap(a, b);//调用swap方法 System.out.println("a=" + a + ",b=" + b);/ 阅读全文
posted @ 2025-11-14 14:53 hujiangtao1 阅读(0) 评论(0) 推荐(0)
摘要: public class RunoobTest{ //成员变量 private int instanceVar; //静态变量 private static int staticVar; public static void setStaticVar(int staticVar) { RunoobT 阅读全文
posted @ 2025-11-14 14:36 hujiangtao1 阅读(1) 评论(0) 推荐(0)