Hello!
I write a simple java program. The user will give a URL adres which have some flags. I will parse the URL by this flags.
For example the user will give www.exampledomain.com/abc/[[FLAG1]]/abc_[[FLAG2]]gfc
I need to parse load to string parsing the URL:
String[1]=www.exampledomain.com/abc/
String[2]=/abc_
String[3]=gfc
I need to ask two questions here:
First
new Scanner("www.exampledomain.com/abc/[[FLAG1]]/abc_[[FLAG2]]gfc").useDelimiter("[[|]]");
my_scanner.next(); ==> why returns me null?
Second, which character i must use for flags? Which characters are not allowing on URL? [ or \ or something else? (I use on example [[ ]] because i did not know a character will not catch by delimiter)
Thank you!