Question: This is my Java code. I do not know how to add the size. the error is Variable expected. basically, I want to compare the

 This is my Java code. I do not know how to

This is my Java code. I do not know how to add the size. the error is Variable expected.

basically, I want to compare the size of different array, if one is larger than another one. I can add the size of smaller one to the larger one. and next time when I call the size again, I need the result size instead of the original size.

Thank you.

//check the size of the tree private int sz(int i) { int size 0; for (int num = : 0; num

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!