I am working with scanner delimiter.
Here is my code:
Scanner sc = new Scanner("hello$to$you");
It should print:
I tried other delimiters such as a letter, and it works FINE. However, when I use the "$" delimiter it appears not to recognize it inside the string. Why is this so? I even tried other symbols and it works fine. However, there is an issue with the "$" delimiter for some reason.