wood burning stoves 2.0*
The moose likes Sockets and Internet Protocols and the fly likes Help me Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Help me" Watch "Help me" New topic

Help me

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
How to Write a computer program that takes the name of a protocol port and prints the port number.
for example,if Http is used,it should print the port number as 80
if ftp is used,21 should be printed.
Carl Trusiak

Joined: Jun 13, 2000
Posts: 3340
Please read Naming Policy and follow it, it does provide benefits to you, JavaRanch does a book give away on a forum periodically and only those who meet the nameing policy are entered.
Looking forward to your posts

I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
subject: Help me
Similar Threads
How to know which port RAD built in Websphere 6.1 server is running on my widows xp laptop
Running tomcat apache 5.5 on fedora 14 problem
Port in URL string: is it for destination or for source?
url is opening when we give IP but not opening through dns name
Memory Profiling using JProbe with Weblogic