0

can anyone find and clarify the error in this code

https://code.sololearn.com/cXdP4h1ODjfy/?ref=app

10th Aug 2020, 4:38 AM
kumar_bittu
kumar_bittu - avatar
3 odpowiedzi
+ 1
String[] allCars= cars.split(","); for (String car: allCars) { System.out.println(car); } cars.split(","), not cars.spilt(",") System.out.println(car), not System.out.println(allCars)
10th Aug 2020, 5:00 AM
Ipang
+ 1
Yes ~ swim ~ that is true.
10th Aug 2020, 5:21 AM
Ipang
+ 1
System.out.println(cars);❌ System.out.println(car);✔️
10th Aug 2020, 6:29 AM
Ayush Rastogi
Ayush Rastogi - avatar