I using readLine()
method for reading the text, but i am not aware of how many text can read that method. Ex.
String str = in.readLine();
how many texts can read and store on "str"?
I using readLine()
method for reading the text, but i am not aware of how many text can read that method. Ex.
String str = in.readLine();
how many texts can read and store on "str"?
Till LINE BREAK
, loosely speaking. For the exact, see Matthew's answer. Cheers.
Integer.MAX_VALUE, but you obviously should not be running into this limit very often.
If you need to ask this question you have a much bigger problem. Why are the lines you are reading so long that you need to worry about it? This is evidence of poor design upstream.