You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//Demo haveing main methode create one student class enter its details and pass them to the set details method fo the student class and display by display method
import java.util.*;
class Array1
{
public static void main(String[] args)
{
Scanner obj = new Scanner(System.in);
Array1 obj1 = new Array1();
System.out.println("Enter the number of students - ");
n = obj.nextInt();
int i;
int Stu[] = new int [n];
obj1.details(name,age,marks);
obj1.Display();
}
void details(String name[50],int age,int marks)
{
System.out.println("\nEnter the details of students\n");