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

 

charAt


charAt(char[] chars, int n) -- given an array of chars and an int, return the character located at the index specified by the int. n will always be a valid index. DO NOT USE. can't have char in codingbat it seems.


charAt(["a", "b", "c"], 0) → "a"
charAt(["a", "b", "c"], 1) → "b"
charAt(["a", "b", "c"], 2) → "c"

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

public String charAt(String[] chars, int n) { }

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

Post-solution available

Copyright Nick Parlante 2017 - privacy