I have a file with 100000 line when am using System.in it takes more than 1 minute to get the input but when I use a file to read the input it doesn’t take time.
what is the solution to keep using System.in but with more speed?
I have a file with 100000 line when am using System.in it takes more
Share
System.in reads line by line not the file contents at a time.So it is slow.