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

 

andersoniii.edwin@cusd80.com > firstInitAndLast
prev  |  next  |  chance

Initial&LastName Write the method to receive the first and last name of an individual as a single string and return the first initial, a period, and the last name. Example "Tom Jones" -> "T.Jones"


firstInitAndLast("Tom Jones") → "T.Jones"
firstInitAndLast("Alice Sanderson") → "A.Sanderson"
firstInitAndLast("Bob Smith") → "B.Smith"

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

public String firstInitAndLast(String name){ }

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: 102

Copyright Nick Parlante 2017 - privacy