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 513 times
Edit
2
Community EvaluationsNo one has reviewed this question yet, be the first!