Employeepayslip Java

You might also like

You are on page 1of 1

import java .io.

*;
import java.util.*;
{
class employee
{
int eid;
string name;
int bp;
}
void get()
{
DataInputStream d=new DataInputStream
System.out.println("Enter the id");
eid=Ineteger.parseInt(d.readline)
System.out.println("Enter the name");
name=d.readline;
System.out.println("eneter the basic pay");
bp=Integer paresent(d.readline);
}
void display()
{
System.out.println("the employee id is":+d);
System.out.println("the name is":+name);
System.out.println("the employee basic pay is":+basic pay);
}
class details
{
int i,n;
scannere[]=new scanner[15]
System.out.println("enter the employee id");
for(i=o,i<n,i++)
{
employee[i]=new employee;
e[i].get();
e[i].display();

You might also like