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, 23.06.2019 13:30
Font size, font style, and are all aspects of character formatting.
Answers: 2
question
Computers and Technology, 24.06.2019 05:30
Why is hard disk space important to an audio engineer? why are usb ports and firewire ports useful for an audio engineer? explain in 2-3 sentences. (3.0 points) here's a list of different audio software: ableton live apple inc.'s garageband apple inc.'s logic studio digidesign's pro tools propellerhead sofware's reason sony creative software's acid pro steinberg cubase steinberg nuendo choose one of the software programs listed above, and then go to that software program's web site. read about what the software program is used for, and then write 4-5 sentences about what you learned. (10.0 points) which type of software license is the most limiting? why? explain in 2-3 sentences. (3.0 points) when sending a midi channel voice message, how can you control the volume of the sound? explain in 2-3 sentences. (4.0 points)
Answers: 1
question
Computers and Technology, 24.06.2019 19:00
In python a floating-point number must be written using scientific notation?
Answers: 1
question
Computers and Technology, 24.06.2019 21:30
How do i copy and paste equations and pictures like math graphs, to post on this site to get my questions answered?
Answers: 2
You know the right answer?
BRAINLETS IF CORRECT!!! can someone help me make comments for this code please? not the first line...
Questions
question
Mathematics, 27.09.2020 02:01
Questions on the website: 13722360