import java.io.*;

class Employee_Details
{

public static void main(String args[]) throws IOException
{

int eno,eage;
String ename;
float esal;

BufferedReader br=new BufferedReader(new InputStreamReader(System.in));

System.out.println(“Enter The Employee Number: “);

eno=Integer.parseInt(br.readLine());

System.out.println(“Enter The Employee Name: “);

ename=br.readLine();

System.out.println(“Enter The Employee Age: “);

eage=Integer.parseInt(br.readLine());

System.out.println(“Enter The Employee Salary: “);

esal=Float.parseFloat(br.readLine());

System.out.println(“Employee Number: “+eno);
System.out.println(“Employee Name: “+ename);
System.out.println(“Employee Age: “+eage);
System.out.println(“Employee Salary: “+esal);

}
}

52,370 total views, 26 views today

Get Free Email Updates..!
Join us for FREE to get instant email updates..! GobsInfo- Everything Unlimited
We hate spam. Your email address will not be sold or shared with anyone else.

2,644 Thoughts to “Java Program To Accept Employee Details And Display It”

  1. Inspiring story there. What happened after? Good luck!

Leave a Comment