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

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -