Writing code in java about null checker and because nested if statements it become more than 5 nested statements and many didn’t do anything since it is hard to make it as good early return but retaining original response.
Well… After afternoon break I just fixed it by using reversed statement and return with same formatting for it. Works well and no nested statements. Happy coding!
Earlier post: