Solved Please Solve This Problem By Using Java Public Class

Solved Please Solve This Problem By Using Java Public Class