my first class comes out clean with no syntax errors, but when i try to compile the second class, it says
" method range in class Car cannot be applied to given types;
required: double; found: no argument: reason: actual and formal argument lists differ in length
How do you turn a psuedocode into an appropriate code for java to understand?
i do not understand how to return a range method from this code i made. i have the psuedocode for it, but i do not know how to turn it into a legit code. Also, can someone double check my other methods as well?
Code:
/**
* Class to determine Car's range of miles.
*
* @author Kelvynn Cayanan
* @version 2/2/2014
*/
public class Car
{
// instance variables -
private double
Leave a comment: