I am going to make a URI using java.net.URI, it gives me the following error Unhandled exception type URISyntaxException, Im wondering why (import java.net.URI) is not working!
Can anyone suggest anything?
Error: Unhandled exception type URISyntaxException
Code:
import java.net.URI;
import java.net.URISyntaxException;
URI uri = new URI("ws://asdasdsad:2000");