how is it donne to read a whole sentence in java ? i’m using System.in but the only thing that i get is the last word of the sentence.
Here the part of my code:
Scanner lectClavier = new Scanner(System.in);
String mot = lectClavier.next();
(…)
System.out.println(“LE MOT EST :” + mot);
and i just see the last word… not the whole sentence