Employee Management System: Abhaysinhraje Bhonsle Institute of Technology
Employee Management System: Abhaysinhraje Bhonsle Institute of Technology
Employee Management System: Abhaysinhraje Bhonsle Institute of Technology
Mumbai
CERTIFICATE
This is to certify that:
Roll no: 11
Roll No: 19
1 Abstract
3 Learning Outcomes
4 References
class Employee
{
String name;
String id;
int salary;
BufferedReader br=new BufferedReader(new
InputStreamReader(System.in));
void get()
{
try
{
System.out.print("Enter the Name: ");
name=br.readLine();
System.out.print("Enter the Id: ");
id=br.readLine();
System.out.print("Enter the Salary: ");
salary=Integer.parseInt(br.readLine());
}
catch(Exception ex)
{
System.out.println(ex);
}
}
void show()
{
System.out.println("The name is: "+ name);
System.out.println("The id is: "+ id);
System.out.println("The salary is: "+ salary);
}
}
public class Program2
{
public static void main(String args[])
{
Employee e[]=new Employee[2];
for (int i=0;i<2;i++)
{
e[i]=new Employee();
}
for(int i=0;i<2;i++)
{
e[i].get();
}
for(int i=0;i<2;i++)
{
e[i].show();
}
}
}
OUTPUT
References….
● YouTube
● Google
Weekly Work / Progress Report …
19 Kengar Nikhil
………………………………………………………………………………………………….