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

 

dvermes@scarsdaleschools.org > validFileName
prev  |  next  |  chance

Problem #17 from page 290 of our textbook If the name and/or extension is invalid, validFileName should return null.


validFileName("1STFILE.TXT") → "1STFILE.TXT"
validFileName("foo") → "FOO.TXT"
validFileName("invalidfilename") → null

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

public String validFileName(String fileName) { }

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