get first character of string java
var string = "freeCodecamp";
string.charAt(0); // Returns "f"
get first character of string java
var string = "freeCodecamp";
string.charAt(0); // Returns "f"
java find index of first alpha character in string
String line = "000 1 This is my message";
Pattern p = Pattern.compile("\p{L}");
Matcher m = p.matcher(line);
if (m.find()) {
System.out.println(m.start());
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us