Below is the method which will accept any number of inputs and any type of inputs and add values of all.
Call this method inside yours Static void main like below with any number and any type of parameters.
Here outputs are, a = 6 , b = abcXYZtest and c = 6.9.
No comments:
Post a Comment