about | help | code help+videos | done | prefs |
public String firstTwoLetters(String text)
public String firstTwoLetters(String text) { String s = text.substring(0,2); return s; } firstTwoLetters("abc") → "ab" firstTwoLetters("123") → "12" firstTwoLetters("Hollow") → "Ho" ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 10
Copyright Nick Parlante 2017 - privacy