create applet application which display selected value from combobox in textfields

26/11/2009 15:33

 

/*************************************************************

***************
        Student name=

        PRN NO=        Program name=create applet application which display selected
             value from combobox in textfields
 

*************************************************************

*************/
import java.io.*;
import java.lang.*;
class employee
{
String name;
int id;
int salary;
BufferReader br=new BufferReader(new InputStreamReader(System.in));
void get()
{
try
{
System.out.println("Enter the Number=");
name=br.readline();
System.out.println("Enter the id=");
id=br.readline();
System.out.println("Enter the salary=");
salary=integer.parseInt(br.readline());
}
catch(exception e)
{
System.out.println(e);
}
void show()
{
System.out.println("The name is="+name);
System.out.println("The id is="+id);
System.out.println("The salary is="+salary);
}
}
}
class Pro
{
public static void main(String args[])
{
employee e[]=new employee[5];
for(int i=0;i<5;i++)
{
e[i].show();
}
}
}

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Back

Search site

Copyright © 2012 Dadaso Zanzane. All rights reserved.