Java program to get the first letter of a string Get link Facebook X Pinterest Email Other Apps - February 27, 2017 Programimport java.io.*; import java.lang.*; class test { public static void main(String[] args) { String a=”helloo”; char first=a.charAt(0); System.out.println(first); } }Output h Get link Facebook X Pinterest Email Other Apps Comments
Comments
Post a Comment