We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
In Stdout first of all current value of i will be print than " " will genrate space and scan.nextLine() will print value read by compiler.
For example if i=1 and complier reads input such as "Hello Eveyone !" so it will be printed like this:
1 Hello Eveyone !
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Java End-of-file
You are viewing a single comment's thread. Return to all comments →
In Stdout first of all current value of i will be print than " " will genrate space and scan.nextLine() will print value read by compiler. For example if i=1 and complier reads input such as "Hello Eveyone !" so it will be printed like this: 1 Hello Eveyone !