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
Andreas93 [3]
4 years ago
13

Given three String variables that have been declared and given values, firstName, middleName, and lastName, write an expression

whose value is the values of each these variables joined by a single space. So if firstName, middleName, and lastName, had the values "Big", "Bill", and "Broonzy", the expression's value would be "Big Bill Broonzy". Alternatively, if firstName, middleName, and lastName, had the values "Jerry", "Lee", and "Lewis", the expression's value would be "Jerry Lee Lewis"
Computers and Technology
1 answer:
Tresset [83]4 years ago
6 0

import java.util.Scanner;

public class Main{

static String firstName;

static String middleName;

static String lastName;

public Main(String firstName, String middleName, String lastName){

this.firstName = firstName;

this.middleName = middleName;

this.lastName = lastName;

}

public void printFullName(){

 System.out.println(firstName + " " + middleName + " " + lastName);

}

public static void main(String...args){

Scanner input = new Scanner(System.in);

// System.out.println("Enter a name seperated by spaces");

// firstName = input.next();

// middleName = input.next();

// lastName = input.next();

firstName = "John";

middleName = "Michael";

lastName = "Scott";

Main obj1 = new Main(firstName, middleName, lastName);

obj1.printFullName();

}

}

You might be interested in
What is ‘Software Testing’?
SCORPION-xisa [38]

Answer: Software testing can be referred as an as activity that one execute in order to verify whether the results match expected results and also to make sure that software system is without any defect. It also tends to involve execution of few software component in order to evaluate several properties.  This majorly helps to identify gaps, error or requirements that are missing in respect to actual requirements.

5 0
3 years ago
How do you know if the website is secure if you make a purchase
marysya [2.9K]

Look for the lock symbol in the search section of your window/browser.

4 0
3 years ago
Read 2 more answers
A MAC Frame format has a Preamble of 7 octet pattern in the form of alternating 1s and 0s used by a receiver to establish synchr
Dmitrij [34]

Answer:

The Manchester encoding to describe the first octet pattern signal within the preamble is 10101010

Explanation:.

Solution

Given that:

The first octet value of Preamble is 10101010

The Manchester encoding to outline or describe the first octet of the signal pattern produced or created within the preamble is 10101010

Note: Kindly find an attached image of the first octet signal pattern produced below.

6 0
3 years ago
HackerCards is a trendy new card game. Each type of HackerCard has a distinct ID number greater than or equal to 1, and the cost
joja [24]

Answer:

I don't know if this is right output is {1,3}

Explanation:

5 0
3 years ago
Given the SQL statement:
tia_tia [17]

Answer:  

C. RepName is an alternate candidate key

Explanation:

The explanation is attached in a document.

Download docx
6 0
3 years ago
Other questions:
  • What should you keep in mind when installing hard drives?
    5·1 answer
  • Network and web0based software used for workplace collaboration is commonly called?
    11·1 answer
  • Truck drivers probably cannot see your vehicle if you cannot
    6·2 answers
  • Assume each student is assigned an advisor from a department. Each classroom is assigned a classroom (class# determines Classroo
    14·1 answer
  • Which career field has grown most as a result of technological changes?
    13·1 answer
  • Write a method called sum with a while loop that adds up all numbers between two numbers a and b. The values for a and b can be
    11·2 answers
  • Write two recursive versions of the function minInArray. The function will be given a sequence of elements and should return the
    8·1 answer
  • Directions: SHOW ALL YOUR WORK. REMEMBER THAT PROGRAM SEGMENTS ARE TO BE WRITTEN IN Java.
    11·1 answer
  • Your computer monitor’s power switch is in the ‘ON’ position; however, the display is blank. Which of the following is NOT a lik
    5·1 answer
  • 8. Assuming str(rate) is "7.25," what output would be produced by the following snippet:
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!