hi all
im writing a function for rectangle where it takes a rectangle and return a rectangle (same top-left vertex) but reduces the width and height by a,b respectively.....
i have done this
public int shrink(int a, int b)
{
return (this.width -= a)&&(this.height -= b);
}
but i get error message saying u cant use && for int
is there another way to write it???
thankyou