answersLogoWhite

0


Best Answer

You should probably use regular expressions. For example, the following will check that the String s has only English (Latin) characters in it:

boolean hasOnlyLatin = s.matches("^[a-zA-Z]*$");

Learning to use regular expressions is scary at first, but worthwhile. See the related links for some information about regular expressions in Java.

User Avatar

Wiki User

16y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Is there is any function or class in Java to check inputed string is valid char sequence and no numbers or any special char are there?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is special about the following sequence of numbers 3773949588525642992?

A single number, such as 3773949588525642992, does not constitute a sequence.


What is a geographic sequence?

A geographic sequence is a series of locations or places arranged in a specific order based on their geographical position or relationship. This sequence may reflect a progression from one location to another, such as in a travel itinerary, or it may be used to map out distances, boundaries, or other geographical features.


What special number sequences are there?

8 5 4 9 1 7 6 10 3 2 0 This sequence is special because the numbers are in alphabetical order. The Fibonacci sequence is very special and the triangular sequence.


What is numerical sequence?

It is any sequence of numbers. For example: 1 3 5 7 9 11 .... - this is the sequence of odd numbers. 1 4 65 4556 4 3 76 ... - this is probably not a special sequence at all.


What is a PHP sequence?

There is no such thing. A sequence is a sequence, but it has no special meaning in PHP.


How do you define function and relation?

A relation has pairs of numbers. A function is a special relation where for each input there is one and only one output.


What is special about the following sequence 4 9 1 7 6 10?

For English speaking people, the numbers are in alphabetical order.


What is special about the sequence of numbers 854917610320?

if you change the numbers into words its in alphabetical order (9-nine)


What is so special about this sequence 8 5 4 9 1 7 6 10 3 2 0?

This sequence of numbers is in alphabetical number when written in their full form, eg; "eight".


Why is the fibbonacci sequence special?

There is no fibbonacci sequence. The Fibonacci sequence was devised as a relatively simple growth sequence. It has the property that the ratio of the numbers of the sequence divided by the preceding number in the sequence tends towards phi, the Golden Ratio = [1 + √5]/2 which has important geometric properties.Also, there are very many instances in nature where the Fibonacci sequence may be found.


What is special about the following order of numbers 854917610320?

The numbers in the sequence 854917610320 are arranged in alphabetical order thus: eight, five, four, nine, one, seven, six, ten, three, twenty.


What is the difference between an infinite sequence and an infinite series?

A series is a special case of a sequence where the n'th term is the sum of n numbers a1, a2, ..., an. In other words, it is a sequence in the form S1 = a1 S2 = a1 + a2 S3 = a1 + a2 + a3 ... Sn = a1 + a2 + ... + an