value - What is the result of executing the statements below? -


i need figuring result of these statements. can assume file "input.txt" readable , contains "hello" on first line.

scanner fileinput = new scanner(newfile("input.txt"));  string s = fileinput.nextline(); 

i believe s have value "hello" or "input.txt" i'm not sure, new java appreciated. thanks.


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -