Once again newbie hit the nail on the head. I had placed rf1.rectData(heightInput, widthInput); before actually taking the widthInput data from the user, so that's why it was coming up with funky...
Type: Posts; User: javadude
Once again newbie hit the nail on the head. I had placed rf1.rectData(heightInput, widthInput); before actually taking the widthInput data from the user, so that's why it was coming up with funky...
I'm going to post both classes since it makes more sense that way.
RectangleProgram:
import java.util.Scanner;
/**
* This is the main class of RectangleProgram. This class will take
*...
I wrote a program to take two values from the user that will determine perimeter and area of a rectangle. However, when I run the program, it is only adding the area input values together instead of...