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.
@ryansgot I too had the same problem and fixed as you suggested,but i searched for Integer.parseInt(s.nextLine()) vs s.nextInt() in Stackoverflow,but they say that Integer.parseInt(s.nextLine()) is more faster than s.nextInt().Please share your view on this.@jeremy_park01@ryansgot
Maximum Element
You are viewing a single comment's thread. Return to all comments →
@ryansgot I too had the same problem and fixed as you suggested,but i searched for Integer.parseInt(s.nextLine()) vs s.nextInt() in Stackoverflow,but they say that Integer.parseInt(s.nextLine()) is more faster than s.nextInt().Please share your view on this.@jeremy_park01 @ryansgot
http://stackoverflow.com/questions/26586489/integer-parseintscanner-nextline-vs-scanner-nextint