Hi all, I'm hoping that i can get some advice, I have to read in files and strings usign two methods the first checks a file is readable which is not a problem I have written that. The next thing that I have to do is to read in lines that...
Hi all,
I'm hoping that i can get some advice, I have to read in files and strings usign two methods the first checks a file is readable which is not a problem I have written that.
The next thing that I have to do is to read in lines that are stored as URLs, the problem is to use a scanner to create URL objects to throw a MalformedURLException should the URL be invalid.
The question I need to ask is can this be done without using another import as in using a cast or promotion. Or have I read this incorrectly.
Many thanks to anybody that can offer some advice.