进阶day08-递归的概念

This commit is contained in:
2026-03-17 12:00:45 +08:00
parent eb7db2e925
commit 789dcc7aaf

View File

@@ -14,11 +14,9 @@ package com.inmind.digui02;
*/
public class Demo08 {
private static int num = 1;
public static void main(String[] args) {
methodA();
}
public static void methodA(){
num++;
System.out.println(num);