logo

Crowdly

Considera la següent funció obtenirLongitud  que retorna la longitud d'una cade...

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

Considera la següent funció obtenirLongitud que retorna la longitud d'una cadena de text: 

Per provar que el mètode obtenirLongitud no retorna un valor específic quan es passa una cadena buida, quin mètode d'assertion hauríem d'utilitzar?

public class Utils {

    public static int obtenirLongitud(String text) {

        return text.length();

    }

}
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!