id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

orion.a.smith@gmail.com apcsa-arrays > apcsaArraysMonogram
prev  |  next  |  chance

Many graduation gifts are personalized with a monogram. Given a full name String with a first, middle, and last name separated by single space characters " ", construct and return a single String consisting of the first letter of each name.


HINTS

Use the split(" ") method of the String class to break the fullName into an array of Strings.

apcsaArraysMonogram("Franklin Delano Roosevelt") → "FDR"
apcsaArraysMonogram("John Quincy Adams") → "JQA"
apcsaArraysMonogram("Harry S Truman") → "HST"

...Save, Compile, Run (ctrl-enter)

public String apcsaArraysMonogram(String fullName) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 220

Copyright Nick Parlante 2017 - privacy