A note-taking application has been written to allow people torecord notes and search for given notes by keyword. Some code hasalready been written for this application, shown below.
public class Note
{
private String subject;
private String contents;
public Note (String topic, String words)
{
subject = topic;
contents = words;
}
/**
* search note for some words,
* return true or false
*/
public boolean includes (Sring text)
{
// to be completed
}
}
The class Note records subject and contents for a new text note.The includes method is incomplete.
a) Complete the body of the includes method. The method shouldreturn true if either the subject or the text ofthe note contains the text parameter.
A separate class,
PayPal Gateway not configured
PayPal Gateway not configured