Solved Please Use Java Implement Both Algorithms For

Solved Please Use Java Implement Both Algorithms For