I need to make a program that uses compareTo, but I'm running into issues with it.
double sides1 = 1.0;
double sides2 = 1.3;
int compared = sides1.compareTo(sides2);
I always run into an error that says
Cannot invoke compareTo(double) on the primitive type double
What am I doing wrong, and how do I fix it?