Answers for "repeating number in digits java"

0

how to check that letter is not a number and is repeating or not in a sentence in java

private static boolean check(String input) {
    for (int i = 0; i < input.length(); i++) {
        char ch = input.charAt(i);
        if (Character.isLetter(ch) && input.indexOf(ch, i + 1) != -1) {
            return true;
        }
    }
    return false;
}
Posted by: Guest on August-10-2021

Code answers related to "repeating number in digits java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language