I use the readLine() method to read text, but I do not know how much text this method can read. Example.
readLine()
String str = in.readLine();
how many texts can read and store on "str"?
he will read as much as is available until he meets eol
Integer.MAX_VALUE , but you obviously should not often come across this limitation.
- and note that this is because Integer.MAX_VALUE is the maximum size for a Java string
Until LINE BREAK , fluent. Exactly, see Matthew's Answer. Greetings.
LINE BREAK
This mistake makes me think that there is no limit.
If you need to ask this question, you will have a much bigger problem. Why are the lines you read so long that you need to worry about it? This indicates a poor design upstream.
Source: https://habr.com/ru/post/1302337/More articles:Access DOM elements without identifier - javascripthttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1302333/how-to-add-gridview-rows-to-a-datatable&usg=ALkJrhhh9rc4LJNXTz2gteg_uZwaY7VxxAAutomatically detect technologies and parameters - javascriptVisual Studio 2008/2010 - Professional vs Team System - visual-studioEmacs: Set / Reset python debug breakpoint - pythonExtract data from a file - unixUploading multiple files into a single HTTP request - httpIs there a CSS optimizer that will detect identical single properties in selectors and group them together? - optimizationFailed to start Eclipse on Fedora 12 with the message "JVM aborted. Exit code = -1" - eclipseStyling HTML FORM elements with padding, 100% wide - javascriptAll Articles