rule4)(This rule is confusing me the most). The var-arg must be last parameter in the methods signature,and you can have only one var-args in a method....
If you have a method that takes var-arg as a parameter then var-arg must be the last parameter.
suppose you have a method that takes 2 parameter one byte and one var-arg then you can't write as
because here your method accepting var-arg as a first parameter.
You should write it as
rule1)you must specify type of arguments that var-args parameter of your method can recieve
as in above code you must have to written that ypur var-arg param type is
String