p******m 发帖数: 65 | 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 |
|