Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
    Bookmark Topic Watch Topic
  • New Topic

searching for url in file

 
Willie Tsang
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Report post to moderator
I have assignment that im stuck with.
Design a program that finds all hyperlinks of the form <a href="link">link text</a> on the address http://java.sun.com/index.html

I have already did the read and write its contents to a file. I am stuck at, how can i read contents that in the file, and know whether it is a url then return its url address. Any suggestions?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question to multiple forums: CarefullyChooseOneForum

Let's continue the discussion in this duplicate thread.
 
    Bookmark Topic Watch Topic
  • New Topic