Write an implementation for the java method isname


Problem

Write an implementation for the Java method isName: /* isName(String) → boolean method is given a String; method indicates whether or not the String is a name (i.e., a proper noun): first character is an upper-case letter all other characters are lower-case letters ex: isName("John") → true isName("mary") → false isName("") → false */ Hints: i. use a loop and the String method charAt(i) to access the character at each index i of the String parameter ii. the pre-defined static method boolean Character.isUpperCase(c) returns true if the given char c is an upper-case letter, and false otherwise iii. the pre-defined static method boolean Character.isLowerCase(c) returns true if the given char c is a lower-case letter, and false otherwise.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write an implementation for the java method isname
Reference No:- TGS03256764

Expected delivery within 24 Hours