While Loop Functional Programming Vs Procedural Programming In Java