Rain( there are some errors) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Rain( there are some errors)

i also want to want my program to find the year with most rainfall and least rainfall, and month with the most and least rainfall. https://code.sololearn.com/cQomc6ZsuDKs/?ref=app

16th Sep 2021, 1:08 AM
Bobby Dike
Bobby Dike - avatar
1 Answer
+ 1
Bobby Dike Not some errors, you have so many errors: First mistake, import should be at top not at bottom or inside class. Remember it is Java not python. Second mistake there should be System.in not System in. Third mistake you missed Semicolon (;), remember in Java there should be Semicolon after each statement. fourth mistake there should not be input.keyboard.nextInt() there should be only input.nextInt() fifth mistake you missed closing bracket and Semicolon here: System.out.print("month"+col+": " sixth mistake you didn't declared average. And main mistake "your basic concept is not clear" https://code.sololearn.com/c7PD95QhLsC7/?ref=app
16th Sep 2021, 3:13 AM
A͢J
A͢J - avatar