MCPcopy Create free account
hub / github.com/bighuang624/Algorithms-notes / hasNextLine

Method hasNextLine

code/algs4/StdIn.java:243–245  ·  view source on GitHub ↗

Returns true if standard input has a next line. Use this method to know whether the next call to #readLine() will succeed. This method is functionally equivalent to #hasNextChar(). @return true if standard input is empty; false otherwise

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

mainMethod · 0.95
mainMethod · 0.95
readAllLinesMethod · 0.95
mainMethod · 0.95
readAllMethod · 0.45

Calls

no outgoing calls

Tested by 1

mainMethod · 0.76