Welcome to Egypt Forums Mark forums read | Egypt Main Page
Egypt Forums
Arabic Movies



Programming Languages A Place for windows applications programs and programmers .

Programming Languages Thread, Converting Scanner to URL in java in Programming , WebDesign & Development; Hi all, I'm hoping that i can get some advice, I have to read in files and strings usign two ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=29279


Reply
LinkBack Thread Tools Display Modes
Converting Scanner to URL in java
 
 
Senior Member

Reply With Quote
 
Join Date: Dec 2008
Posts: 18,122
15-02-2009, 03:00 PM
 
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.
 
 
 
Reply

Programming Languages Thread, Converting Scanner to URL in java in Programming , WebDesign & Development; Hi all, I'm hoping that i can get some advice, I have to read in files and strings usign two ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=29279


Bookmarks

Tags
converting, java, scanner, url


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump