java netbeans
Given the following Point class.
public class Student {
private String name;
private String id;
private int yob;
public Student(String id, String name, int y){ this.name = name;this.id = id; yob=y;} public Student(Student s){this.id =s.id;this.name = s.name; this.yob = s.yob;} public String getID(){return id;}
public String getName(){ return name;}
public int getYob(){ return yob;}
public void setName(String name){ this.name = name;} public voidsetYob(int yob){ this.yob = yob;}
public void setID(String id){ this.id = id;}
}
Q1. Define a class Assignment2 in which it has the static methodQ1 as follows:
create an array list of integers that contains the odd numbersfrom 1-39
print the average of the numbers in the list.
Write a method
PayPal Gateway not configured
PayPal Gateway not configured