Question from the Java and Craftsmanship test

Write a function that returns the first character of a string in Java

Medium

Ce code

public String getFirstLetter(String value) {
  return value.substring(0, 1);
}
Author: Clément DevosStatus: PublishedQuestion passed 446 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!