for (int i = 0; i < size; i++)
{
BufferedReader bReader1 = new BufferedReader (new InputStreamReader(System.in));
BufferedReader bReader2 = new BufferedReader (new InputStreamReader(System.in));
System.out.println("Enter surname of student ");
String str = bReader1.readLine();
System.out.println("Enter group of student ");
String str2 = bReader2.readLine();
arrayOfstudents = new Student(str, str2);
}
ввод строки
Код:
главное когда нажимаю точку у bReader1/2 то в списке есть readLine(), а ошибка такая - the method readLine() is undefined for the type InputStream