0
function that returns a string of paramaeters passed to it on Java
I want to write a function that returns a string of paramaeters passed to it and if no parameters passed return âno parameters passed â
3 Answers
+ 1
Just go through java courses
https://www.sololearn.com/learning/2152/
0
I tried but i do no where is the problem
public class Program
{
public static void main(String...args) {
return args.length==0 ?"no parameters passed ":
String.join("," args );
}
}