问几个菜问题2# Java - 爪哇娇娃
p*m
1 楼
Question 2
Write a complete Java program that will prompt the user to enter: 1) a stude
nt name, and 2) a student number. After inputting the data, the program shou
ld calculate and output the number of odd digits in the student number. Som
e details:
Input: Input the name and student number via JOptionPane.
Do not use charAt() in your solution: Although string methods could be used
to solve this problem, our class has not yet covered string methods, and we
want you to solve this problem usin
Write a complete Java program that will prompt the user to enter: 1) a stude
nt name, and 2) a student number. After inputting the data, the program shou
ld calculate and output the number of odd digits in the student number. Som
e details:
Input: Input the name and student number via JOptionPane.
Do not use charAt() in your solution: Although string methods could be used
to solve this problem, our class has not yet covered string methods, and we
want you to solve this problem usin