How do I use the useDelimiter() method of the Scanner class to use both the comma (,) and the new line character (\\n) as delimiters?
useDelimiter()
Scanner
I am
Jigar is absolutely correct. But if it doesn't work, try ",|\\r"
",|\\r"
since most text files have \r\n instead of just \n