Question : get first 5 characters of string java
Answered by : xenophobic-xenomorph-tyzvetbbcynk
firstFourChars = input.substring(0, 4);
Source : https://howtodoinjava.com/java/string/get-first-4-characters/ | Last Update : Tue, 31 Mar 20
Question : get first character of string java
Answered by : red-necked-phalarope
var string = "freeCodecamp";
string.charAt(0); // Returns "f"
Source : | Last Update : Sat, 21 Dec 19