0

In Java , String has a method called Format and in that method you can add as much parameters as you can. For example: String.format("%d and %s",value,text) and String.format("%s and %s , and %d",title,text,value)

Thus this method can have many parameters with different classes without having an error. How can I make a method like that? is it possible in Generics and Recursion ?

Naji Kadri
  • 89
  • 1
  • 1
  • 9

0 Answers0