各位相加 题目描述: 方法: package EverybodyAddUp; public class EverybodyAddUp01 { public static void main(String[] args) { System.out.println(addDigits(38)); } public static int addDigits(int num) { return (num - 1) % 9 + 1; } }