Question from the Java and Craftsmanship test

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

Easy

Ce code

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