There are lots of people here who will freely give their time to help you become the best Java programmer you can be. There's nobody here who is interested in helping you cheat or doing your homework for you.

DaniWeb Member Rules (which you agreed to when you signed up) include:
"Do provide evidence of having done some work yourself if posting questions from school or work assignments"

That won't even compile.
And no, I won't rewrite that for you. I won't use lambdas, they're ugly, hard to read, an abomination.

I like lambdas, but I have no idea what your code is supposed to do, therefore have no idea how to refactor it. Do you really intend to repeatedly overwite the new values of largeApple?

This article has been dead for over six months. Start a new discussion instead.