Question3: 1. Implement a method to count number of digits in the string, for ex
ID: 3553306 • Letter: Q
Question
Question3:
1. Implement a method to count number of digits in the string, for example, if the string is String str = "ab12cd14"; the number of digits in str is 4.
2. Given a full name, please return the first name. In the full name, there is only one space between first name and last name.
publicclassStringManipulation {
publicstaticvoid main(String[] args) {
}
// implement this method
publicstaticint numberofDigits (String str) {
}
//implement this method
publicstatic String getFirstName(String fullName) {
}
}
Explanation / Answer
The link of the solution is: http://ideone.com/cdVpuP
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.