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

 

frew@mclean.com regex3 > split2
prev  |  next  |  chance

Given a string representing an email address, split it to return a 3-element array representing the username, domain, and domain extension.


split2("mst3k@virginia.edu") → ["mst3k", "virginia", "edu"]
split2("billgates@microsoft.com") → ["billgates", "microsoft", "com"]
split2("bunnie@bunnie.net") → ["bunnie", "bunnie", "net"]

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

public String[] split2(String s) { }

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

Copyright Nick Parlante 2017 - privacy