subject

BRAINLETS IF CORRECT!!! can someone help me make comments for this code please? not the first line tho

public int longestPrefix( String a, String b ) {
int count = 0;
int shortStringLength = 0;
if (a. length() > b. length()) shortStringLength = b. length();
else shortStringLength = a. length();
for (int i = 0; i < shortStringLength; i++) {
if (a. charAt(i) == b. charAt(i)) count ++;
else break;
}

return count;
}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:00
Alocal reaction will occur at the site of the exposure such as irritation or damage to the skin eye or local reaction will occur at the site of the exposure such as irritation or damage to the skin ireland lounges
Answers: 3
question
Computers and Technology, 22.06.2019 10:10
3. bob is arguing that if you use output feedback (ofb) mode twice in a row to encrypt a long message, m, using the same key each time, it will be more secure. explain why bob is wrong, no matter what encryption algorithm he is using for block encryption (15 points).
Answers: 3
question
Computers and Technology, 22.06.2019 10:20
Print "usernum1 is negative." if usernum1 is less than 0. end with newline. convert usernum2 to 0 if usernum2 is greater than 10. otherwise, print "usernum2 is less than or equal to 10.". end with newline
Answers: 3
question
Computers and Technology, 23.06.2019 00:30
Quick pl which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 1
You know the right answer?
BRAINLETS IF CORRECT!!! can someone help me make comments for this code please? not the first line...
Questions
question
Business, 11.10.2020 21:01
question
Health, 11.10.2020 21:01
question
Mathematics, 11.10.2020 21:01
question
Mathematics, 11.10.2020 21:01
question
Chemistry, 11.10.2020 21:01
question
Arts, 11.10.2020 21:01
Questions on the website: 13722359