Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task #3 Working with Strings 1. Use the charAt method to get the first character in firstName and store it in a variable called firstInitial

image text in transcribed

Task #3 Working with Strings 1. Use the charAt method to get the first character in firstName and store it in a variable called firstInitial (you will need to declare any variables that you use) 2. Print out the user's first initial. 3. Use the toUpperCase method to change the fullName to uppercase and store it back into the fullName variable. 4. Add a line that prints out the value of fullName and how many characters (including the space) are in the string stored in fullName (use the length method to obtain that information). 5. Compile, debug, and run. The new output added on after the output from the previous tasks should have your initials and your full name in uppercase characters

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Machine Performance Modeling Methodologies And Evaluation Strategies Lncs 257

Authors: Francesca Cesarini ,Silvio Salza

1st Edition

3540179429, 978-3540179429

More Books

Students also viewed these Databases questions

Question

Distinguish between filtering and interpreting. (Objective 2)

Answered: 1 week ago

Question

What is the Big Bang Theory?

Answered: 1 week ago

Question

4. Who should be invited to attend?

Answered: 1 week ago