Sample Mobile
Sample Mobile
import java.util.Scanner;
public class Solution {
public static void main(String[] args) {
}
int input1=sc.nextInt();sc.nextLine();
Student res1=findStudentWithMaximumAge(students);
System.out.println("id-"+res1.id);
System.out.println("name-"+res1.name);
System.out.println("marks-"+res1.marks);
System.out.println("age-"+res1.age);
Student res2=searchStudentById(students,input1);
if(res2==null)
{
System.out.println("no Students found with mention attribute");
}
else
{
System.out.println("id-"+res2.id);
System.out.println("name-"+res2.name);