Meaningless Drivel is fun!
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
I agree. Here's the link:
subject: Help me
It's not a secret anymore!