Question: Question 1 (1 point) Match up the following values with the expressions on the left. Assume the following declarations and assignments have been made: String
Question 1 (1 point) Match up the following values with the expressions on the left. Assume the following declarations and assignments have been made: String username = "harry": String password = "potter": Note: please do not use nameter wordt in a dictionary as they can be cracked oukko, tong sentences wuh upper and lowercase letters StringIndexOutOfBoundsException 1. username. length() 2 . 2. (username + password). Length > rr 3. username.substring(2, 4) 5 6. username.indexOf("tt") arry 7. password. indexOf("") o 8. username.compareTo( "harry") -1
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
