Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

D Question 2 1 pts Whats the difference between doing this: Strings = Hello; s.toUpperCase(); and doing this: Strings = Hello: s=s.toUpperCase(); (Section 4.4.4 pg

image text in transcribed

image text in transcribed

D Question 2 1 pts Whats the difference between doing this: Strings = "Hello"; s.toUpperCase(); and doing this: Strings = "Hello": s=s.toUpperCase(); (Section 4.4.4 pg 131) (If you are unsure, test it in your IDE) The second example saves the new string, while the first's toUpperCase() statement does nothing Both examples do not make any changes to the string Both examples change the string to uppercase "HELLO" Since strings are composed of integers, the toUpperCase method will throw" into an unnamed variable that can be referenced by creating the statement: int** var =s*; The first example saves the new string, while the second's toUpperCase() statement does nothing Question 4 1 pts If I want to get the slot number of a character, what method do I use? (Section 4.4.9 pg 136) charAt() length() indexOFO toUpperCasel) isLetter()

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions