# Java help

**URL:** <https://forum.kirupa.com/t/java-help/231757>\
**Category:** Uncategorized\
**Created:** [July 7, 2007, 5:20pm UTC](https://forum.kirupa.com/t/java-help/231757 "2007-07-07T17:20:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wo1olf](https://avatars.discourse-cdn.com/v4/letter/w/278dde/32.png) [@wo1olf](https://forum.kirupa.com/u/wo1olf)\
**Post date:** [July 7, 2007, 5:20pm UTC](https://forum.kirupa.com/t/java-help/231757/1 "2007-07-07T17:20:11Z")

</div>

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
