Read InputStream just to the first ENTER?

Normally CONTROL+D would end input for your application, which should return you a -1 for your method call. Depending on the OS, you might want to try ENTER then CONTROL+D and ENTER again.

Yes, thats it! I just need CONTROL + D and it ends (-1) – Lillipo May 30 '11 at 6:52.

This is about the standard way to do it Scanner scan = new Scanner(System. In); String line = scan.nextLine().

I know but I want to use the string as an inputstream and later I want to read this inputstream and put as a string... – Lillipo May 29 '11 at 22:40.

It should be one of 10 or 13 values depending on os.

No not working :/ Im using linux x64 – Lillipo May 29 '11 at 22:20 according to this aritcle you can't get it right – Gajet May 29 '11 at 22:28.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions