类似于转化为二进制统计二进制数中1的个数 codig import java.util.Scanner; public class Main{ public static void main(String []args){ Scanner sc = new Scanner(System.in); int num = sc.nextInt(); System.out.println(findresult(num)); sc.close(); } public static int findresult(int ...