Question: i need to create a package with Java. Can someone help me do that? These are the two classes that will be included in my


i need to create a package with Java. Can someone help me do that? These are the two classes that will be included in my package.
public class Student{ private String name; private int id; private double GPA; public Student() { } public Student(String name, int id, double GPA) { this.name = name; this.id = id; this.GPA = GPA; } public void printStudent() { System.out.print(" Student name: "+name); System.out.print(" Student id: "+id); System.out.print(" GPA: "+GPA); } public int getID() { return id; } I } import java.util.Scanner; public class StudentMaint public static void main(String[]args) { I Scanner sc = new Scanner(System.in); Student[] students = null; while (true) { try{ System.out.print("How many students do you have (1-10):"); int number of students sc.nextInt(); sc.nextLine(); if (number of students > 0 && number of students
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
