Inheritance

Description:

Display the employee salary using the simple Inheritance Test Case 1 Input (stdin) 5000 Expected Output 5000 Test Case 2 Input (stdin) 0 Expected Output 0

Program :

import java.util.*;

public class TestClass {

public static void main(String[] args) {

int a;

       Scanner in=new Scanner (System.in);

       a=in.nextInt();

       System.out.println(a);

}

}