• 0

[Java] Printing a link in Java?


Question

Hey all,

I want to print a link in Java. I don't want to print a URL, I want print text that will open the link in the user's web browser.

Ex. URL: http://youtube.com

text: Youtube

Google results have showed me how to print a URL, but not a text-link. Any help would be much appreciated :D

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Are you outputting to the screen or to a file, if so, what kind of file is it?

AFAIK if you are outputting to the command line there is no way for it to be a link since you'd need to use a browser or some other "link-aware" viewer for it, even so it'd need to be in the form of an HTML (or any other supported kind of link for the viewer) tag.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.