Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote