Course Solutions Uncategorized (Solved) : Java Netbeans Given Following Point Class Public Class Student Private String Name Private Q28402062 . . . .

(Solved) : Java Netbeans Given Following Point Class Public Class Student Private String Name Private Q28402062 . . . .

 

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

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post