![Computers and Technology](/tpl/images/cats/informatica.png)
Computers and Technology, 23.04.2021 23:10, torresalysabeth
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;
}
![answer](/tpl/images/cats/otvet.png)
Answers: 1
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 05:10, kellysimkin6196
Read the code below. what will the computer print if the input for year_variable is 1700? if year_variable == 1776: print("your answer is correct. the declaration of independence was signed in “year_variable”.") elif year_variable < 1776: compute_variable = 1776 - year_variable. print("add “compute_variable“ years to your answer for the correct answer.") elif year_variable > 1776: compute_variable = year_variable - 1776 print("subtract “compute_variable” years from your answer for the correct answer.")
Answers: 1
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 04:20, RandomLollipop
Which network media uses different regions of the electromagnetic spectrum to transmit signals through air? uses different regions of the electromagnetic spectrum to transmit signals through air.
Answers: 2
Do you know the correct answer?
BRAINLETS IF CORRECT!!!
can someone help me make comments for this code please? not the first line...
Questions in other subjects:
![Konu](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 20.10.2020 14:01
![Konu](/tpl/images/cats/mat.png)
Mathematics, 20.10.2020 14:01
![Konu](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 20.10.2020 14:01
![Konu](/tpl/images/cats/biologiya.png)
Biology, 20.10.2020 14:01
![Konu](/tpl/images/cats/fizika.png)
![Konu](/tpl/images/cats/en.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 20.10.2020 14:01
![Konu](/tpl/images/cats/en.png)
![Konu](/tpl/images/cats/en.png)