Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions

Question

What are value drivers?

Answered: 1 week ago