import [Link].
*;
class Bankacc4
{
String name;
float ammount;
int accid;
public Bankacc4(String nm,float amm,int acid)
{
name=nm;
ammount=amm;
accid=acid;
}
public void display()
{
[Link]("\
n-------------------------------------------------");
[Link]("Name is-"+name);
[Link]("The ammount is-"+ammount);
[Link]("The account id is-"+accid);
[Link]("\
n-------------------------------------------------");
}
}
public class Myacc
{
public static void main(String [] s) throws IOException
{
BufferedReader br=new BufferedReader(new InputStreamReader([Link]));
int noofacc=0;
String nm;
int ac;
float amt;
Bankacc4 cust[];
[Link]("\nEnter how many accounts u want to creat? ");
noofacc=[Link]([Link]());
cust=new Bankacc4[noofacc];
for(int i=0;i<noofacc;i++)
{
[Link]("\n\n\tCreat acc of person no-"+(i+1));
[Link]("\n\n Enter the name of the person: ");
nm=[Link]();
[Link]("\n\n Enter the account no of the person: ");
ac=[Link]([Link]());
[Link]("\n\n Enter the opening ammount of the person:
");
amt=[Link]([Link]());
cust[i]=new Bankacc4(nm,amt,ac);
}
[Link]("\n\t------# DETAILS OF ACCOUNTS #------");
[Link]("\
n-------------------------------------------------------");
for(int i=0;i<noofacc;i++)
{
[Link]("\n\tAccount details of person "+(i+1));
cust[i].display();
}
}
}