Question: this problem is in java please only complete it with...
This problem is in java. Please only complete it with java.
Sample Expected input and output below.
Another sample input is below.
Please complete in java only, and add everything inside the main function if possible without using any functions.