+ 1
Problem in split
What is problem in my code below? Scanner input= new Scanner(System .in); String MyName=input.nextLine(); int number_of_agent=input.nextInt(); String[] other_customary=(input.nextLine()).split(" "); int turn=1; Arrays.sort(other_customary); for(int f=0;f<4;f++){ System .out .println(other_customary[f]); }
1 Réponse
+ 2
Don't make duplicate questions
https://www.sololearn.com/discuss/2643664/?ref=app