Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

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;
}
Comment

PREVIOUS NEXT
Code Example
Java :: java program to print hexadecimal to decimal number conversion 
Java :: add element to queue java 
Java :: Returning an Array from a Method 
Java :: governmental transparency 
Java :: sealed interface java codegrepper 
Java :: login in java with 3 attepmtps 
Java :: java console readline null pointer exception 
Java :: Display a Text Five Times 
Java :: java how to call getReader twice 
Java :: get time until start of next hour in java 
Java :: maximum valid parentheses 
Java :: springBoot ConditionalOnMissingBean 
Java :: search in jdbc 
Java :: labelled for loop in java 
Java :: Sample TreeMap 
Java :: como detener un void java 
Java :: Write program for problem 1 such that every regex runs as its own thread in java 
Java :: Java Documenting assumptions 
Java :: test function that call a function javascrip 
Java :: java virtual override 
Java :: kivy menu bar 
Java :: List of tuple to map + jpa 
Java :: vec add to text field java 
Java :: file with line numbers inserted java 
Java :: stacks based on a linked list 
Java :: Java Single element Annotations 
Java :: JAVA Display numbers from 1 to 5 
Java :: multipleQuastion.Java 
Java :: Java Floating-point Literals 
Java :: hasAuthority method not working with thymeleaf 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =