Курсовая работа: Объектно-ориентированное программирование
if(d<10)
{
i=m[d];
d++;
textArea.setText(newStaff[i].getName());
}
}
private int ccc1;
private String S1;
private int i=0;
private int d=0;
private int [] m= new int [10];
}
private JTextArea textArea;
private JScrollPane scrollPane;
private String S2;
private Device[] newStaff = new Device[10];
private int[] d1= new int[10];
static Device[] readData(BufferedReader in)
throws IOException
{
int n = Integer.parseInt(in.readLine());
Device [] e=new Device[n];
for(int i=0;i<n;i++)
{
e[i] = new Device();
e[i].readData(in);
}
return e;