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