create() I’m trying to return my UriParser with this line of code:
return new UriParser(Scheme,UserInfo, Host, Path, Query);
Each of those is a string. However, it’s telling me that UriParser is an uninstantiated type. What do I need to do to make it work?
Thanks in Advance!
UriParser.java) is an interface.
You can not directly instantiate interfaces.
Instead, you have to write a class that implements that interface.
UriParserImplementation as done in
UriParserImplementation.java. You then also need to add a constructor that does what you want it to do.