Solved Java Programming Please Give Full Code For Both

Solved Java Programming Please Give Full Code For Both