Results 1 to 2 of 2
Thread: How to validate NRIC number
- 04-18-2010, 04:03 PM #1
Member
- Join Date
- Apr 2010
- Posts
- 24
- Rep Power
- 0
-
You could either loop through the String with a for loop checking each char via charAt(..) checking to see if it's S or s and then if digits via a Character method, or you could use a regular expression.
Similar Threads
-
Using NRIC.no to calculate and retrieve last alphabet
By Roselicious in forum New To JavaReplies: 3Last Post: 04-15-2010, 06:33 PM -
Finding a number in array close to another number
By SteroidalPsycho in forum New To JavaReplies: 2Last Post: 02-15-2010, 12:37 AM -
Printing the Number of Times a Number in a Range Shows up
By space4rent00 in forum New To JavaReplies: 1Last Post: 02-05-2010, 10:42 PM -
unable to validate
By sanser in forum Java ServletReplies: 4Last Post: 10-28-2009, 09:41 AM -
Validate/Convert a number using the current Locale()
By Java Tip in forum Java TipReplies: 0Last Post: 03-01-2008, 10:01 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks