写一个递归方法,输入一个非负整数,返回组成它的数字之和 import java.util.Scanner; public class test { //写一个递归方法,输入一个非负整数,返回组成它的数字之和. public static int func(int num) { if