-1
import java.util.Arrays;
public class OrdenaArgumentos {
String [] nomes = new String []{ " rafael cosentino ", " jonas hirata ", " marcelo martins "};
java.util.Arrays.sort (nomes);
for ( String nome : nomes ) {
System . out. println ( nome );
}
}
Could you add more information about the problem?
– Chun
Multiple markers at this line - Syntax error on token ";", { expected after this token - Syntax error, Insert "... Variabledeclaratorid" to complete Formalparameterlist - Syntax error on token(s), misplaced Construct(s)
– user37114
Syntax errors in the sentence java.util.Arrays.Sort (names);
– user37114
The point of . Sort is underlined in red and (names); also.
– user37114
You can always Edit your question to add this and other relevant additional information that may help solve the problem. The edit link is just below your question after
tags
. If you need help formatting text and code, go to: Help on the Markdown and also - format publications– Chun