1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
-BARSIC- [3]
3 years ago
8

Solve the following questions.

Computers and Technology
1 answer:
NeX [460]3 years ago
4 0

Answer:

The codes for the problem are given below

Explanation:

//Name class

public class Name

{

  private String first,last,middle;

 

  public Name(String first,String middle,String last)

  {

      this.first=first;

      this.middle=middle;

      this.last=last;

  }

  public String getNormalOrder()

  {

      return first+" "+middle+". "+last;

  }

  public String getReverseOrder()

  {

      return last+", "+first+" "+middle+".";

  }

  public String toString()

  {

      return first+" "+middle+" "+last;

  }

  public void setFirstName(String first)

  {

      this.first=first;

  }

  public void setMiddleName(String middle)

  {

      this.middle=middle;

  }

  public void setLastName(String last)

  {

      this.last=last;

  }

}

//TestNameClass class

public class TestNameClass

{

  public static void main(String[] args)

  {

      Name myname=new Name("John","K","Watson");

      myname.setFirstName("John");

      myname.setMiddleName("Q");

      myname.setLastName("Public");

      System.out.println("My name: ");

      System.out.println(myname.getNormalOrder());

      System.out.println(myname.getReverseOrder());

     

      Name friend=new Name("Sherlock","P","Holmes");

      System.out.println("Friend's name: ");

      System.out.println(friend.getNormalOrder());

      System.out.println(friend.getReverseOrder());

  }

}

You might be interested in
Which of the following can be used to replace internal network addresses with one or more different addresses so the traffic tha
love history [14]

Answer:

A Proxy Server

Explanation:

In data communication and computer networks, proxy servers are intermediaries or a gateway that sits between the user and the internet. The users are therefore separated from the web they browse. The proxy servers then provide filters and firewalls.

7 0
3 years ago
Which of the following words, if it replaced the word "enthusiasts" in the sentence above, would CHANGE the meaning of the sente
Sonja [21]

Answer:

I would need the sentence to make sure that I am correct but I am pretty sure it is C. aficionados

Explanation:

7 0
3 years ago
A local reaction will occur at the site of the exposure, such as irritations or damage to the skin, eyes or lungs true or flase
nadezda [96]
True 

Hope that helps.

(:

5 0
3 years ago
1.A tachometer measures:
Art [367]
1. D


2. D


I hope I helped :)
3 0
3 years ago
Nate wants to copy the style of his contact address to the normal template. Complete the paragraph to describe how he can access
blondinia [14]

Answer:

1) Nate open his template first and clicks the tab on the ribbon

2) Then, he clicks the dialog box that appears

3) He chooses Templates from the menu

4) Clicks Go to clicks the Organizer button

5) Then he clicks copy

6) Next he clicks on the left side to the backstage view

7) Finally, he selects the document that includes the style he wants to transfer to the normal template

Explanation:

I hope this helps

5 0
3 years ago
Other questions:
  • Write a program that reads the lengths of the sides of a triangle from the user. Compute the area of the triangle using Heron's
    8·1 answer
  • What are the major features of a successful ethics training program and communication systems? Think of an example of a company
    13·1 answer
  • The number of worksheets a workbook can contain is limited to the ______ of your computer.
    7·1 answer
  • If you are viewing a webpage with customized or regenerated content, such as updated stock quotes, what type of webpage are you
    14·1 answer
  • ICT excel data homework
    10·1 answer
  • In 1–2 sentences describe how you would insert a row in a spreadsheet.
    11·1 answer
  • A robot can complete 7 tasks in hour. Each task takes the same amount of time.
    15·2 answers
  • 3.
    5·1 answer
  • Display all the lines in unixPasswd that contain at least 10 consecutive lowercase letters. How many names are there in total th
    12·1 answer
  • Write a program that lets the user enter the loan amount and loan period in number of years and displays the monthly and total p
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!