✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
El següent codi Java funciona, però ha estat escrit ràpidament per un company i és difícil d’entendre. El teu repte és:
Millorar els noms de classes, mètodes i variables.
Afegir comentaris explicatius dins del codi.
Documentar correctament amb JavaDoc la classe i cada mètode.
public class T {
public int a(int x, int y){ return x*y + y; }
public String b(String s){ return s + s.toUpperCase(); }
public boolean c(int[] z){ for (int i=0; i<z.length; i++){ if (z[i]%2==0){ return true; } } return false; }}
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!