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 Antworten
+ 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 );
}
}