java name format many documents use a specific format for a person's name. write a program whose input is: firstname middlename lastname and whose output is: lastname, firstinitial.middleinitial.

Answers

Answer 1

The following program are:

import java.util.Scanner;

public class NameFormat {

 public static void main(String[] args) {

   Scanner scanner = new Scanner(System.in);

   System.out.println("Enter firstname, middlename, lastname: ");

   String name = scanner.nextLine();

     String[] nameSplit = name.split("\\s+");

    String firstName = nameSplit[0];

   String middleName = nameSplit[1];

   String lastName = nameSplit[2];

   String outputName = lastName + ", " + firstName.charAt(0) + "." + middleName.charAt(0) + ".";

    System.out.println(outputName);

 }

}

What is java?

Java is designed to be platform independent and can run on almost any operating system. Java is widely used to create applications, applets, and web-based content. It is also used in a variety of server-side applications and mobile applications. Java is easy to learn for those with a basic knowledge of programming, and it can be used to develop large and complex applications.

Java is secure, reliable, and efficient, making it a popular choice for developers. It has a large library of libraries and tools that can be used to create complex applications quickly and easily. Java is also used to create web applications, as it is easy to deploy, secure, and debug. Java is also used for game development, as it is fast, reliable, and has advanced graphics capabilities.

To learn more about  java

https://brainly.com/question/26789430

#SPJ4


Related Questions

Hi,
My friend has failed in Hindi but got good marks in IT (6th optional subject) and passed other subject with good marks will he be considered pass or fail.
He is studying in the year 2022–2023
Please reply fast Thank you

Answers

Pass because failing one class dosent mean he will fail, all of them
For 90% no but for his family it depends if they’re 30 yrs back then he will be considered as a failure but if they modern and think about 30 years later then no he will not be considered as a failure welcome back if you think that this is helpful

what is the range of nice values that affect processes access to system resources? what nice value will give the application the most cpu time?

Answers

The default value of a process' nice value is 0, and it can vary from -20 (top importance) to +19 (lowest priority).

What does a CPU do?

The microcontroller (CPU) is the component of the computer that receives and processes instructions (CPU). A CAD system's CPU may be thought of as its brain. It is made up of a controller, a number of registers, and an arithmetic logic unit unit (ALU). The CPU is known to as a "processor".

Why is the CPU so crucial?

The CPU, which houses all the hardware required to process information, process data, and output results, is the body of a computer. The CPU is continually executing computer programs that give it instructions on which data too process and in what order. Without a CPU, we couldn't utilize a laptop to run programs.

To know more about CPU visit :

https://brainly.com/question/14836660

#SPJ4

ambrose is testing his it department's new firewall deployment. he is using a collection of applications that employ a brute-force technique to craft packets and other forms of input directed toward a target. what is this collection of tools called?

Answers

Packet Filtering Firewall is responsible for filtering the packets based on the IP addresses source and destination port numbers and also the source and destination protocols.

What is information security?Information security can be defined as a preventive practice which is typically used to protect an information system (IS) that use, store or transmit information, from potential theft, attack, damage, or unauthorized access, especially through the use of a body of technologies, encryption, firewalls, frameworks, processes and network engineers.A firewall can be defined as a network security protocol that monitors and controls inbound and outbound traffic based on set aside security rules.In Computer technology, a firewall is used to control access to a computer or network, as it creates a barrier between a computer or a network and the internet in order to protect against unauthorized access.Therefore, the other functionality which would influence a decision to deploy a stateless, rather than stateful, firewall are:Block TCP portsAllow network protocols.

To learn more about firewall refer to:

https://brainly.com/question/16157439

#SPJ4

when sending a group email how do you ensure that one or several recipients cannot see the names?

Answers

The most popular way for sending emails to several recipients without hiding all of their email addresses is BCC (Blind Carbon Copy). The BCC feature allows you to send emails to numerous recipients while hiding other recipients from the receiver, giving the impression that you are the only one receiving the email.

How can I send emails in bulk without other recipients seeing my Outlook?

Click on the "Options" tab in Outlook when you open a brand-new, blank email. The Bcc field in the message header should then be selected. With this "blind carbon copy" option, your email recipients won't be able to view the other names on the list.

How do I send each person in a group email?

Write the message you want to send to your contact list in a new email that you have opened. In the top-right corner of your compose window, click BCC. Include every email address that you want to send the message to. Copying and pasting your list into this field might be helpful.

To know more about Blind Carbon Copy visit;

https://brainly.com/question/1384709

#SPJ4

a person without an id badge gains entry into one of our secured facilities by following a badged employee through a secure door. what type of unauthorized activity does this describe?

Answers

Tailgating. Tailgating can be a serious security risk, as it allows unauthorized individuals to enter a secured area without being properly screened or identified.

What is tailgating ?Tailgating, also known as "piggybacking," is a type of unauthorized access to a secured area by following someone who has legitimate access. In the scenario you described, an individual without an ID badge gains entry to a secured facility by following a badged employee through a secure door. This is an example of tailgating.It can also be difficult to detect, as the individual may appear to have legitimate access if they are following someone who does.To prevent tailgating, it is important to implement security measures such as access control systems, security cameras, and trained security personnel. It is also important to educate employees on the importance of not allowing others to follow them into secured areas and to report any suspicious activity to security.

To learn more about security cameras refer :

https://brainly.com/question/29817931

#SPJ4

dwight is a software engineer. he would like to earn a certiciate that showcases that he is well versed on application security. what certification would be most suitable

Answers

He wants to obtain a certification that will show potential employers that he is knowledgeable about software security issues. These certificates in cyber security can give you a career boost.  

What is cyber security?

The requirements to obtain them. the initial security certification that IT specialists ought to obtain. It establishes the fundamental knowledge needed for any cyber security profession and serves as a launching pad for jobs at the intermediate level in the field. There are credentials for all skill levels, from those just starting out to those for seasoned professionals wishing to upgrade, making certifications in cybersecurity potentially more valuable than a degree.

To learn more about cyber security from given link

brainly.com/question/28112512

#SPJ4

scarlet is developing a system compliant with the pci dess. waht type of information sithe most likely type she want sto protect

Answers

Organizations that process, store, or transport cardholder data are subject to the PCI DSS set of security standards. It addresses issues including malware prevention, firewalls, authentication, encryption, and incident response.

What is PCI DSS?For businesses that deal with branded credit cards from the main card brands, the Payment Card Industry Data Security Standard (PCI DSS) is a security standard for information.The Payment Card Industry Security Standards Council is in charge of enforcing the PCI Standard, which is imposed by the card companies. In order to tighten safeguards over cardholder data and decrease credit card fraud, the standard was developed.Annual or quarterly [better source needed] validation of compliance is carried out using a technique appropriate to the volume of transactions processed.Assessor of Self-Assessment Questionnaire (SAQ) for Internal Security particular to Firm (ISA)Independent Security Assessor (QSA)Twelve requirements are listed in the PCI Data Security Standard, and they are grouped into six logically linked categories termed "control objectives."

To learn more about PCI DSS refer to:

https://brainly.com/question/28335079

#SPJ4

Choose the correct term for each type of software.
software manages the hardware and software on a computer. Without this software, the computer
would not be functional.
software allows users to complete tasks and be productive. Examples of this software include
browsers, word processors, and video editors.
software allows programmers to create the software and utilities used on computers.

Answers

The correct term for each type of software may include is as follows:

An operating system is a type of software that manages the hardware and software on a computer. Without this software, the computer would not be functional.System software is a type of software that allows users to complete tasks and be productive. Examples of this software include browsers, word processors, and video editors.Application software allows programmers to create the software and utilities used on computers.

What do you mean by Software?

Software may be defined as a set and collection of instructions, data, or programs that are used to operate computers and execute specific tasks.

It is the opposite of hardware, which describes the physical aspects of a computer. Software is a generic term used to refer to applications, scripts, and programs that run on a device.

An operating system is software that controls and coordinates the computer hardware devices and runs other software and applications on a computer. It is the main part of system software and a computer will not function without it.

Therefore, the correct term for each type of software may include is well-mentioned above.

To learn more about Software, refer to the link:

https://brainly.com/question/28224061

#SPJ1

Which of these statements would create a variable but not assign anything to it? group of answer choices
a. variable = empty
b. variable = null
c. create variable
d. variable = """"

Answers

Answer:

c. create variable

Explanation:

Other Questions
what starts with n and end with er When the interest rate is so low that the opportunity cost of holding money is zero, then economists say we have reached: A) the era of total liquidity.B) the zero-lower-bound situation, which means the U.S. economy may be in a liquidity trap.C) full monetary saturation.D) a situation in which a nation must use caution, since monetary policy is "super" effective. Which if these options best describes the diagnostic cleavage that is typical of the mica group of minerals (which includes muscovite and bietet A) Three perpendicular cleavage planes B) Two cleavage planes intersecting at 90 C) Two cleavage planes intersecting at 120 D) A single planar cleavage 2._____________This mountain range forms a natural boundary between France and Spain. two different two-digit whole numbers are selected at random. what is the probability that their product is less than 200. express your answer as a common fraction. (hints: (l) there are 90 different two-digit numbers, (2) the pair {10, 11} produces the smallest product and the pair {11, 18} produces the largest product less than 200). What is transpose of matrix a company had net cash flows from operations of $143,000, cash flows from financing of $376,000, total cash flows of $569,000, and average total assets of $3,880,000. the cash flow on total assets ratio equals: the nurse is preparing to administer hepatitis b vaccine, recombinant (energix-b) 5 mcg im to a school-aged child. the vaccine is labeled, 10 mcg/ml. how many ml should the nurse administer? morphine is ordered to infuse at 3mg/hr. the medication is prepared with 60mg of morphine in 250ml of fluid. at what rate should your pump be set Here is the graph for one equation in a system of equations:a) Write a second equation for the system so it has infinitely many solutions.b) Write a second equation whose graph goes through (0, 1) so the system so it has nosolutions. Initiation phase begins with the determination that a gap exists between organization performance and expected outcomes the leadership. The leadership then identifies an opportunity for improvement and assesses the feasibility of the project.1. Identify PI opportunity2. Determine the feasibility of the project3. Define project objectives and scope4. Select team members5. Create vision and mission statement In a group of 500 people determine how many are suspects in the following scenario.A wallet was stolen from an office in a building with 500 employees. The suspect was wearing black pants, a white button-down shirt, and a multicolored tie. In one of the offices in the building, the following data was collected. 30 people total in the office22 wearing a white button down shirts16 wearing black pants7 wearing a multicolored tieUsing the data, how many suspects are there? Consider the following method. public static void addOneToEverything(int[] numbers) { for (int j = 0; j < numbers.length; j++) { numbers[j]++; } } Which of the following code segments, if any, can be used to replace the body of the method so that numbers will contain the same values? I. for (int num : numbers) { num++; } II. for (int num : numbers) { num[j]++; } III. for (int num : numbers) { numbers[num]++; } A I only B I and III only C II and III only D I, II, and III E None of the code segments will return an equivalent result. E None of the code segments will return an equivalent result choose all the structures that are involved with emotional feelings and memories. multiple select question. prefrontal cortex amygdala midbrain medulla oblongata pons if an object producing sound is moving away from you, you would observe a wavelength than an object moving toward you. group of answer choices For a particular nonlinear spring, the relationship betweem the magnitude of the applied force F and the resultant displacement x from equilibrium is given by the equation F = k x^2 What is the amount of work done by stretching the spring a distace x0? A) kx0^3 B) (1/2)kx0 C) (1/2)kx0^3 D) (1/3)kx0^2 E) (1/3)kx0^3 The intake of fatty foods contributes to a rise in cholesterol levels. This is an example of a(n) ______.Group of answer choicescontrol groupneutral associationpositive associationnegative association Which parent function is represented by the graph?O A. An exponential parent function B. The quadratic parent function C. The absolute value parent functionO D. The linear parent function What is the freezing point, in C, of a 2.75 m solution of C8H18 in benzene? A science class is going to do an experiment to investigate how water temperature changes the rate at which salt dissolves in water. What tool will be needed to measure the temperature of the water?