if you noticed, wala ko nag initialize sa mga declared variables.
but naa ko method nga
Code:
private void setRows(int rows){
this.rows = rows;
}
the method above literally means,
this class' rows = rows where rows (bolded above) is ang user's input.
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..
Code:
do{
pero diri sa sulod gibutangan nimo og tf=false;
So, do you think loop ni?
}while(tf==true);
para mo-padayon na siya, tanga-tanga ang
tf=false;