Question: This is in Java and needs to NOT use the JOptionPane: 25. A database is to be developed to keep track of student information at

This is in Java and needs to NOT use the JOptionPane: 25. A database is to be developed to keep track of student information at your college. It will include their names, identification numbers, and grade point averages. The data set will be accessed in the key field mode, with the student's name being the key field. Code a class named Listing that defines the nodes. Your class should include all the methods in the class shown in Figure 2.28. Test it with a progressively developed driver program that demonstrates the functionality of all of its methods. Figure 2.28 This is in Java and needs to NOT use the JOptionPane: 25.

1. public class Node 2. private String name; I key field private String address; private String number; public Node (String n, String a, String num) 6 name = n ; address a; number num ; 10 11, 12 public String tostring0 { return ("Name is + name + nAddress isaddress+ InNumber is+number+"In) 15 16 17 public Node deepCopy() { Node clone = new Node (name, address, number); return clone; 19. 20 21 public int compareTo (String targetKey) return (name.compareTo (targetKey)); public void setAddress(String a) II coded to demonstrate /I encapsulation 23 24 25. 26 27 28 29. 30. address = a; public void input() name JOptionPane.showInputDialog("Enter a name"); address = JOptionPane, showinputDialog ("Enter an address"); number = JOptionPane. showinputDialog ("Enter a number.); end of inputNode method end of class Node

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!