Write a method called isNameValid() that accepts one String argument, and returns true if the string is a valid name or false otherwise.

Write a method called isNameValid() that accepts one String argument, and returns true if the string
is a valid name or false otherwise.

In this task, you are being asked to write value-returning methods in Java.
Write a method called isNameValid() that accepts one String argument, and returns true if the string
is a valid name or false otherwise.
You may use the following header for this method:
static boolean isNameValid(String name)
The string will be a valid name if it contains letters, spaces and digits, and its length is from 3 to 20
characters (inclusive).

Get Your Custom Essay Written From Scratch
Are You Overwhelmed With Writing Assignments?
Give yourself a break and turn to our top writers. They’ll follow all the requirements to compose a premium-quality piece for you.
Order Now