Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BruceEckel/OnJava8-Examples
/ getLine
Method
getLine
exceptions/InputFile.java:30–38 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
28
}
29
}
30
public
String getLine() {
31
String s;
32
try {
33
s = in.readLine();
34
} catch(IOException e) {
35
throw
new
RuntimeException(
"readLine() failed"
);
36
}
37
return
s;
38
}
39
public
void
dispose() {
40
try {
41
in.close();
Callers
1
main
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected