![]() ![]() How do I fix this issue? import java.util. Another problem: When I try to run the driver program, I get the following error: Exception in thread 'main' at Exercise.toString(Exercise.java:68) at (String.java:2854) at java.io.PrintStream.println(PrintStream.java:821) at pg5a.main(pg5a. It says method getNumAccidents in class fourthHomework cannot be applied to given types required: double found: no arguments reason: actual and formal lists differ in length. I am having issues with the commented segment it is giving off this error: E:School stuffJavaAssign7Polk.java:60: error: method FindMax in class ScanArray cannot be applied to given types int highest findarray. Also, and rather surprisingly given the BlueJ developers efforts in this direction, the error reporting of codepad is very unhelpful. Try something like this to remove the error: double area 0. ![]() I'm fairly new to java and I'm having trouble with this error. Your constructor is set up to take two arguments, a double and an int, but you pass neither. The code is supposed to ask for the number of accidents and determine which of the five regions has the least amount of accidents and print the number of accidents and the region. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |