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

28th Dec 2020, 8:40 AM
Mohammad Reza Moravejolahkami
Mohammad Reza Moravejolahkami - avatar
1 Antwort
+ 2
28th Dec 2020, 8:42 AM
Krish
Krish - avatar