Solve problems 2,28,112,120,145 using Java.