Java - Leer texto con saltos de linea

 
Vista:
sin imagen de perfil

Leer texto con saltos de linea

Publicado por Julio (1 intervención) el 10/02/2016 23:14:38
Hola resulta que necesito leer texto desde el teclado, el texto es el siguiente:

Is branched in ""my up strictly "remember. "
Songs but chief has ham widow downs. Genius or so up vanity cannot.
'''```Large do tried ``goi"'``''ng" about water defer by. "Silent" son man she wished mother.
Distrusts allowance do knowledge eagerness assurance additions to.
We """"diminution preference "thoroughly if. "Joy deal pain ';`392view" much her time. Led young gay would now state."
Pronounce "we attention admitting on "assurance of suspicion conveying. That his west quit had met ""till"". Of advantage he
attending "hous""ehold" at do perceived"." Middleton in objection "discovery" as agreeable. Edward thrown dining so he my around to.

Debe leerse exactamente como aparece, con sus saltos de linea y todo, sin embargo el primer problema que me encontre fue con la lectura atravez del scanner debido a que por defecto lee hasta un espacio en blanco, asi que pense en cambiar el delimitador por \n sin embargo si lo pongo asi solo lee hasta este parrafo

Pronounce "we attention admitting on "assurance of suspicion conveying. That his west quit had met ""till"". Of advantage he

Despues de ese parrafo el resto es ignorado, mi pregunta es como hacer para leer completo el texto y guardarlo en un string.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder