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

Using \"Sam\" as the object of the person class, develop aprogram that will retu

ID: 3613985 • Letter: U

Question

Using "Sam" as the object of the person class, develop aprogram that will return the number of characters contained in theobject, converts the object to all capital letters, to alllowercase letters, and identifies and prints only "am." usejava.
where do I start? what do i do? thank you! Using "Sam" as the object of the person class, develop aprogram that will return the number of characters contained in theobject, converts the object to all capital letters, to alllowercase letters, and identifies and prints only "am." usejava.
where do I start? what do i do? thank you!

Explanation / Answer

I am not exactly sure what you mean. However, if you have String person= "Sam"; we could return the number of characters in theobject by int numChars =person.length(); we could convert to upper case letters with person = person.toUpperCase(); we could convert to lower case letterswith person = person.toLowerCase(); and we can print the substring of the letters"am" by ignoring the first letter. String am= person.substring(1);

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