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

Help me

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Thanks,
Kalnayak
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kalnayak,
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic