Java tutorial
//package com.java2s; public class Main { public static String getFirstCharacter(String name) { return (name.substring(0, 1)); } }