SO I am trying to finish an overdue Lab.... I have been putting this off because I don't understand what I am doing wrong.
Here is what I need to be able to do. "Your job is to complete the program. When it is complete, the program will ask the user to enter the width and length of a rectangle, and then display the rectangle’s area. The program calls the following methods, which have not been written:
• getLength—This method should ask the user to enter the rectangle’s length, and then return that value as a double.
• getWidth—This method should ask the user to enter the rectangle’s width, and then return that value as a double.
• getArea—This method should accept the rectangle’s length and width as arguments, and return the rectangle’s area. The area is calculated by multiplying the length by the width.
• displayData—This method should accept the rectangle’s length, width, and area as arguments, and display them in an appropriate message on the screen.
Copy the source code and the output into a word processing document and submit the file."
This is what I have so far. Netbeans is telling me that nothing is wrong but it isnt working right....
The second bullet point in the last section at the bottom of that page explains what's going on when you select Run vs Run File. I guess "Run" is synonymous with "Run Main Project" and you have another class set as the main class for the current project your editing.