[java]Exception in thread "main" java.lang.StackOverflowError
Résolu/Fermé
A voir également:
- Exception in thread "main" exception in thread "main" exception in thread "main" java.lang.stackoverflowerror
- [java]Exception in thread "main" java.lang.StackOverflowError ✓ - Forum - Java
- Exception in thread "main" java.lang.noclassdeffounderror ✓ - Forum - Java
- Exception in thread "main" java.lang.exceptionininitializererror forge ✓ - Forum - Jeux en ligne: Minecraft
- Exception in thread "main" java.lang.outofmemoryerror: java heap space ✓ - Forum - Java
- Exception in thread "main" java.lang.nullpointerexception ✓ - Forum - Java
6 réponses
KX
15 juin 2014 à 19:00
- Messages postés
- 16555
- Date d'inscription
- samedi 31 mai 2008
- Statut
- Modérateur
- Dernière intervention
- 24 juin 2022
15 juin 2014 à 19:00
Bonjour,
Le problème c'est que
Le problème c'est que
caracterDansChaine(String nom,char t), fait un
if (caracterDansChaine(nom,t))qui appelle donc la même méthode avec les même arguments, elle va donc encore faire un
if (caracterDansChaine(nom,t))puis encore un autre, et un autre, à l'infini, jusqu'à planter le programme...