logo

Crowdly

P9. Considera la següent classe  Utils amb un mètode esPar que retorna cert s...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

P9. Considera la següent classe Utils amb un mètode esPar que retorna cert si un nombre és parell i fals si és imparell:

Per provar que el mètode esPar funciona correctament, quin mètode d'assertion hauríem d'utilitzar?

public class Utils {

    public static boolean esPar(int numero) {

        return numero % 2 == 0;

    }

}
More questions like this

Want instant access to all verified answers on www.vidalibarraquer.net?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!