probleme Exception java.util.NoSuchElementException

probleme Exception java.util.NoSuchElementException - Java - Programmation

Marsh Posté le 13-11-2019 à 21:36:31    

Bonjour voici mon code:
 
import java.util.*;
public class t{
 
     public static void main(String []args){
         int a = 0;
         Scanner lectureClavier = new Scanner (System.in);
         System.out.print("choisissez un nombre" );
         a = lectureClavier.nextInt ();
         int tableau [] = {1,2,3,4,5,6,7,8,9};
         
         
               
     }
}
 
La console m'indique :choisissez un nombreException in thread "main" java.util.NoSuchElementException
 
Je suis nouveau et j'ai fait des recherches mais aucun des résultats trouvés ne résoud mon problème.

Reply

Marsh Posté le 13-11-2019 à 21:36:31   

Reply

Marsh Posté le 14-11-2019 à 12:22:46    

Salut
 
Ton code marche et ne retourne pas d'erreur chez moi


---------------
Mes apps  |  Viens coder  |  Mon topal de vente
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed