Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started