I am new to the scanner method. Is there a way to check if the scanner.nextLine() contains a pattern?
For example xxx. xxxx: xxxx. xxxx:
So I want to check that there is a . : . : ignoring the xxxx in between. The xxxx can represent any primitive type of String.
Any help would be greatly appreciated.
String#split(...)for more detailed parsing. Myself, I'd just get the line with the Scanner and then split the String.