Solved In Java Please Show The Correct Code And Output

Solved In Java Please Show The Correct Code And Output