QuestionQuestion

Consider the application for booking meeting rooms. Create a program to keep track of contacts. For each person to save a name and phone number. The program will have graphic user interface, and store information on file. Program code is provided on a single text file (. Txt). Separate classes clearly.

Solution PreviewSolution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

mport java.io.*;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;


public class MeetingRoom {

public Map<String, String> names;

public MeetingRoom()
{
names = new HashMap<String, String>();
try(BufferedReader out = new BufferedReader(new FileReader("contacts.txt")))
{
String line;
while((line = out.readLine()) != null)
{
String[] split = line.split("\\s+");
names.put(split[0], split[1]);
}
} catch (IOException e) {
return;
}
}

public boolean addEntry(String name, String phoneNumber)
{
if(!names.containsKey(name))
{
names.put(name, phoneNumber);
return true;...

By purchasing this solution you'll be able to access the following files:
Solution.java, Solution1.java and Solution2.java.

50% discount

Hours
Minutes
Seconds
$40.00 $20.00
for this solution

or FREE if you
register a new account!

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Java Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Decision:
Upload a file
Continue without uploading

SUBMIT YOUR HOMEWORK
We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats