Write a function type method called phoneList that accepts as a parameter a name consisting of the first and last name, and returns a string in the form of last name, first name. For example, if the name is "Verna Guru", then the string

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Please help using java
Create a method to check for valid input and
another for displaying the mark ranges. Call
both methods from the main.
4. Write a function type method called phoneList
that accepts as a parameter a name consisting of
the first and last name, and returns a string in the
form of last name, first name. For example, if the
name is "Verna Guru", then the string
produced should be "Guru, Verna".Create a
program that uses this method. The program
should allow the user to enter several names until
they want to end.
s. When entering passwords, the computer often
returns hiding characters that hide the password
that is entered.
Write a program that hides the words entered by a
user with a character of your choice. Spaces
should not be hidden. For example, if the user
enters the string “All gophers are named Fred",
and your chosen character is “*", the output of
the program should be "*** ***************
****". Your program should use two methods in
addition to the main method. The first called
hideChars takes in a String and a character of
your choice and returns a String of those
characters. The second calledisASpace takes
in a char and returns true if it is a space and false
if it is not.
Transcribed Image Text:Create a method to check for valid input and another for displaying the mark ranges. Call both methods from the main. 4. Write a function type method called phoneList that accepts as a parameter a name consisting of the first and last name, and returns a string in the form of last name, first name. For example, if the name is "Verna Guru", then the string produced should be "Guru, Verna".Create a program that uses this method. The program should allow the user to enter several names until they want to end. s. When entering passwords, the computer often returns hiding characters that hide the password that is entered. Write a program that hides the words entered by a user with a character of your choice. Spaces should not be hidden. For example, if the user enters the string “All gophers are named Fred", and your chosen character is “*", the output of the program should be "*** *************** ****". Your program should use two methods in addition to the main method. The first called hideChars takes in a String and a character of your choice and returns a String of those characters. The second calledisASpace takes in a char and returns true if it is a space and false if it is not.
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Function Arguments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education