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 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
Get step-by-step solutions from verified subject matter experts
