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

 

tim@ggc.edu > getUserId
prev  |  next  |  chance

Create a method that creates a user id, where the user id is made up of the first letter of the first name and the entire last name. e.g. john smith -> jsmith


getUserId("bill", "gates") → "bgates"
getUserId("steve", "jobs") → "sjobs"
getUserId("larry", "page") → "lpage"

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

public String getUserId( String firstName, String lastName) { }

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

Copyright Nick Parlante 2017 - privacy