La méthode equals() s'applique t elle seulement au String où elle peut aussi s'appliquer au Integer ?
goune stephie
Niveau 22
equals()
Discussion en cours
Commentaires (1)
- Populaires
- Nouveau
- Anciennes
Tu dois être connecté(e) pour laisser un commentaire
Gellert Varga
15 juillet 2021, 11:04
The equals() method is a method of the Object class.
You should know that all other classes are descendants of the Object class and they inherit all the methods from Object.
This means that you can use the equals() method on all of existing type.
0