Question
NotebookDriver.java import java.util.*; public class NotebookDriver { public static void main(String[] args) { System.out.println(This is the main method to test Notebook.java); // Notebook myNotebook =
NotebookDriver.java
import java.util.*;
public class NotebookDriver {
public static void main(String[] args) {
System.out.println("This is the main method to test Notebook.java");
// Notebook myNotebook = new Notebook();
// Note myNote = new Note();
// myNote.setCategory("ITS1213");
// myNote.setTitle("UML diagrams");
// myNote.setBody("A UML class diagram consists of one or more classes,"
// + " each with sections for the class name, attributes (data), "
// + "and operations (methods)");
// myNote.setDate("2/8/2022");
// myNotebook.addNote(myNote);
// for(Note aNote:myNotebook.getNotes()){
// System.out.println("Note title "+ aNote.getTitle());
}
}
Note.java
public class Note{
public Notes(){
}
}
Notebook.java
public class Notebook{
public Notebook(){
}
}
4) You should implement Note.java using the following class diagram: 5) You should implement Notebook.java using the following class diagram: Note: Underlined fields and methods are staticStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started