Answer the question
In order to leave comments, you need to log in
How to return the contents of an array?
There is a method to which the argument is passed as an array of 10 characters.
Then he must present the array as a whole word and return it for further manipulations.
private static String totalunique(String[] unique) {
for (String stringunique : unique) {
System.out.print(stringunique);
}
return null;
}
private static String totalunique(String[] unique) {
String stringunique = null;
for (stringunique : unique)(здесь будет подчеркнуто красным и говорить expected ;) {
System.out.print(stringunique);
}
return stringunique;
}
Answer the question
In order to leave comments, you need to log in
Your best bet is to use the TextUtils.join function in the Android SDK:TextUtils.join("", unique);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question