how to call one method inside another method? i a trying to solve but unable to solve the problem . In every time it is printing the print statement but not showing the arra