Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

VB & Java "Option" Question.

 
Anand Karia
Ranch Hand
Posts: 156
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All

I have a function having

public void getTel(String str, String Narration1, String Destination)

Like in Visual Basic we normally use Optional command between parameters like

public void getTel(String str, String Narration1, Optional String Destination)

Due to which we are capable to use the same function regardless of declaring Destination parameter.

Is there any type or anything available in java who can do the same for me.

ANAND KARIA
 
Tony Morris
Ranch Hand
Posts: 1608
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic