0

What is wrong with my code?

pls i dont know why my code wont work https://code.sololearn.com/cW0ZS0KpKb4W/?ref=app

2nd Oct 2021, 8:00 AM
Bobby Dike
Bobby Dike - avatar
7 Answers
+ 1
/u00a0 is a ‘non-breaking space character’. This means that you just need to remove all of the tabs and spaces in the program and it should work.
2nd Oct 2021, 8:09 AM
Jared H
Jared H - avatar
+ 1
Bobby Dike , here you go: https://www.sitepoint.com/java-unicode-mysterious-compile-error/ I hope that helps. (there is a solution and exlanation at the bottom of that webpage.. )
2nd Oct 2021, 8:16 AM
Aleksei Radchenkov
Aleksei Radchenkov - avatar
+ 1
Bobby Dike There are some unknown characters in your code. It happens because you have copied code from somewhere. So the solution is rewrite your code. https://code.sololearn.com/cSRO7kiHtSA8/?ref=app
2nd Oct 2021, 10:14 AM
A͢J
A͢J - avatar
+ 1
also here is the tool to remove it, (if you use PC) https://code.sololearn.com/c5xtcD05VAc3
2nd Oct 2021, 11:17 AM
zemiak
+ 1
thanks
2nd Oct 2021, 3:29 PM
Bobby Dike
Bobby Dike - avatar
+ 1
the code calculates the total of even numbers and odd numbers, but it does not do it from the array, it counts based on the size of the array. How do i solve this problem. For example, if this was an array of 8 12 23 46 24 56 78 89 34 the program will say there are 4 even numbers and 4 odd, which is not true. i need the program to say there are 6 even numbers and 2 odd numbers. https://code.sololearn.com/cW0ZS0KpKb4W/?ref=app
2nd Oct 2021, 3:36 PM
Bobby Dike
Bobby Dike - avatar
- 1
I hope you sleep like you to meet with the cheating woman
3rd Oct 2021, 12:43 AM
Bienvenido Torres