Java
Sponsored Links
The two functins that are given here isCharString()/ isNumString() will return a boolean value when we pass a string value if there are char/number true else vise-versa false for number/char.
This is very useful functions for PINCODE/ZIPCODE validation or NAME/CITY validation from serverside.
Normally if we have UI like Jsp or HTML we willl do these validations from javascript. But if we need serverside, we can use the above functions. The example is given inside main() function.
| # | Coder Name | Hits |
| 1. | srinivasaraobora | 130740 |
| 2. | iamdvr | 97693 |
| 3. | venki_madesh | 35134 |
| 4. | Raju | 18488 |
| 5. | parmod kumar duhan | 15756 |
| 6. | Kiran.jakkaraju | 14058 |
| 7. | chowsys | 7456 |
| 8. | Venkateswara Rao | 6476 |
| 9. | ashish.cns | 6348 |
| 10. | Vamshidhar Matam | 5428 |
| # | Coder Name | Codes |
| 1. | srinivasaraobora | 14 |
| 2. | iamdvr | 3 |
| 3. | Kiran.jakkaraju | 2 |
| 4. | chowsys | 2 |
| 5. | Vamshidhar Matam | 1 |
| 6. | morla | 1 |
| 7. | Venkateswara Rao | 1 |
| 8. | venkat_kiran | 1 |
| 9. | Kiran Jakkaraju | 1 |
| 10. | ravikant271990 | 1 |