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
Zolol [24]
3 years ago
15

Write an expression whose value is the concatenation of the three str values associated with name1 , name2 , and name3 , separat

ed by commas. So if name1 , name2 , and name3 , were (respectively) "Neville", "Dean", and "Seamus", your expression's value would be "Neville,Dean,Seamus".
name1 + "," + name2 + "," + name3
Computers and Technology
1 answer:
jenyasd209 [6]3 years ago
3 0

Correct Question:

Write an expression whose value is the concatenation of the three str values associated with name1 , name2 , and name3 , separated by commas. So if name1 , name2 , and name3 , were (respectively) "Neville", "Dean", and "Seamus", your expression's value would be "Neville,Dean,Seamus".

Answer:

name1 + "," + name2 + "," + name3

Explanation:

This is called string concatenation. Using Java programming language, see below an interactive program making use of this expression to request for three names and output them as required by the question.

import java.util.Scanner;

public class ANot {

   public static void main(String[] args) {

   Scanner in = new Scanner(System.in);

       System.out.println("Enter the first name");

       String name1 = in.next();

       System.out.println("Enter the second name");

       String name2 = in.next();

       System.out.println("Enter the third name");

       String name3 = in.next();

       //concatenating and printing out the names.

       System.out.println(name1 + "," + name2 + "," + name3);

}

}

You might be interested in
Which two sentences uses the colon correctly?
faust18 [17]
You much list something after a colon.
For example
Kaylina's bag included:
Food,Books,Makeup,and a brush.
5 0
3 years ago
How many bits would be needed to count all of the students in class today?There are 25 in class
monitta

Answer:

50?

Explanation:

8 0
3 years ago
Read 2 more answers
Demand is created through meeting customer buying criteria, credit terms, awareness (promotion) and accessibility (distribution)
tankabanditka [31]

Answer:

Bell

Explanation:

In the given case the product that has the highest Dec. Cust. Survey score will be treated as most competitive at the end of last year. Based on the information provided in the "Top Products in Thrift Segment" table, we can conclude that Bell has highest score for Dec. Cust. Survey score which stands at 31.

Please see attachment for the product list we referenced to as non was given.

7 0
3 years ago
Lionbridge theory test
marishachu [46]
What about it kidddddd
4 0
3 years ago
Read 2 more answers
Universal Containers (UC) has decided to build a new, highly sensitive application on the Force platform. The security team at U
Tresset [83]

Use an AppExchange product that does fingerprint scanning with native Salesforce Identity  Confirmation

8 0
3 years ago
Other questions:
  • When doing a complex presentation, which of the following would be the best tool to begin designing your presentation?
    11·2 answers
  • An essential skill today is knowing how to cite sources properly. Creative Commons has a system of licenses and tools for creato
    11·1 answer
  • When planning the structure of a spreadsheet, columns are for _______ items and rows are for _______ items.
    5·2 answers
  • How does an agile team maintain requirement?​
    9·2 answers
  • Let’s define a new language called dog-ish. A word is in the lan- guage dog-ish if the word contains the letters ’d’, ’o’, ’g’ a
    6·1 answer
  • How is DATA sent across a Network?
    7·1 answer
  • Who invented the Bluetooth device​
    12·1 answer
  • What happens to a message when it is deleted?
    5·2 answers
  • How much would it cost to get the screen replaced on a Moto G7?
    10·1 answer
  • A user generates printouts consisting of several pages of seemingly random characters every time he prints to a network printer.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!