if you noticed, wala ko nag initialize sa mga declared variables.
but naa ko method nga
the method above literally means, this class' rows = rows where rows (bolded above) is ang user's input.Code:private void setRows(int rows){ this.rows = rows; }
Also called, Encapsulation
I didn't put "find" sa akong code above, because I want you to understand first.
But naa na ko diri complete code nahimo.
based sa imu gi-himo, mao ni nahitabo..
para mo-padayon na siya, tanga-tanga ang tf=false;Code:do{ pero diri sa sulod gibutangan nimo og tf=false; So, do you think loop ni? }while(tf==true);![]()




Reply With Quote