i only added the println to the min and max because those are the only two that aren't working properly.
Type: Posts; User: Baboop
i only added the println to the min and max because those are the only two that aren't working properly.
it printed "The smallest value is 0" for the min and "The largest value is 0" for the max.
like this?
import java.awt.Graphics;
import javax.swing.JApplet;
import javax.swing.JOptionPane;
public class drawRectangle extends JApplet
{
public int x;
even with the println call it still says the max and min are both 0.
how would i go about assigning the values for the rectangle in this particular instance?
yes it executes but it just says the min value is 0 and the max value is 0
allows for user input of the 4 values (x, y, width, height) but it wont draw the rectangle with those values.
import java.awt.Graphics;
import javax.swing.JApplet;
import...
Everything works exactly like its suppose to but when its suppose to show the max and min values out of the 3 numbers, it just returns 0.
//23.4
import java.awt.Graphics;
import...