how to put the conditions for empcode in java

how to put the conditions for empcode in java

In my project there is an option for updation,to update their details they have to enter their employeecode.i want to put some conditions for that employeecode. The employeecode starts with 'tr' and 'mh' followed by 5digits. ex: tr10700 mh10790

so i want to keep conditions that 1st two positions shud be letters and that too tr and mh,next positions shud be 5digits.if these conditions are not satisfied then it shud display some message like invalid code .....

also the entered employeecode shud match with empcode in database otherwise it shud giv invalid empcode....

how to do put these conditions,plz giv me the code....its urgent.... thk u.....

View Answers

Ads









Related Tutorials/Questions & Answers:
how to put the conditions for empcode in java
how to put the conditions for empcode in java  In my project... their employeecode.i want to put some conditions for that employeecode. The employeecode... shud match with empcode in database otherwise it shud giv invalid empcode.... how
How to put an image on a JButton?
How to put an image on a JButton?  How to put an image on a JButton
Advertisements
how to put php in javascript
how to put php in javascript  How to write a javascript code inside php block
How to put multiple predictions for one zodiac sign, Java Horoscope!
How to put multiple predictions for one zodiac sign, Java Horoscope!  Hey! I am doing a horoscope program and I want to put few different options for predictions that the program would tell? EXAMPLE: If I put 30.8 the program
How to put points on a JButton
How to put points on a JButton  I wanted to ask....what am i supposed to do if i wanna set points on my JButton so as to be able to draw arcs... on each side are connected to openings on other sides....how can i get
How to put the image in footer in login form ?
How to put the image in footer in login form ?  Hi, how to put the image in footer in login form ?   Here is an example that shows image on footer along with Login Form in Java Swing. import javax.swing.*; import
How to put text file numbers to array and check the position of numbers?
How to put text file numbers to array and check the position of numbers?   I have numbers in text file data.txt 12 9 8 3 1
How to put the logo in login form using swings/awt?
How to put the logo in login form using swings/awt?  Hi, How to put... but i want to put the logo in login form plz help   Here is an example that will display logo along with login form in Java Swing. import javax.swing.
ModuleNotFoundError: No module named 'conditions'
'conditions' How to remove the ModuleNotFoundError: No module named 'conditions' error? Thanks   Hi, In your python environment you...ModuleNotFoundError: No module named 'conditions'  Hi, My Python
conditions
ModuleNotFoundError: No module named 'a4t-terms-and-conditions'
: No module named 'a4t-terms-and-conditions' How to remove the ModuleNotFoundError: No module named 'a4t-terms-and-conditions' error? Thanks  ...ModuleNotFoundError: No module named 'a4t-terms-and-conditions'  Hi
ModuleNotFoundError: No module named 'conditions-py'
'conditions-py' How to remove the ModuleNotFoundError: No module named 'conditions-py' error? Thanks   Hi, In your python...ModuleNotFoundError: No module named 'conditions-py'  Hi, My
ModuleNotFoundError: No module named 'django-conditions'
named 'django-conditions' How to remove the ModuleNotFoundError: No module named 'django-conditions' error? Thanks   Hi, In your...ModuleNotFoundError: No module named 'django-conditions'  Hi, My
ModuleNotFoundError: No module named 'put'
ModuleNotFoundError: No module named 'put'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'put' How to remove the ModuleNotFoundError: No module named 'put' error
connection of java file to excel file and put data from excel file into oracle db
connection of java file to excel file and put data from excel file into oracle db  how to create button on excel sheet using java swing and how we give action to that button excel sheet? how we connect excel file to java file
ModuleNotFoundError: No module named 'a4t-sale-terms-and-conditions'
: No module named 'a4t-sale-terms-and-conditions' How to remove the ModuleNotFoundError: No module named 'a4t-sale-terms-and-conditions' error...ModuleNotFoundError: No module named 'a4t-sale-terms-and-conditions'  
ModuleNotFoundError: No module named 'django-flexible-filter-conditions'
: ModuleNotFoundError: No module named 'django-flexible-filter-conditions' How to remove the ModuleNotFoundError: No module named 'django-flexible-filter-conditions'...ModuleNotFoundError: No module named 'django-flexible-filter-conditions
Example Using put() method
that how a put function is used in the program, in this example first time when... : C:\anshu>javac put.java C:\anshu>java put... Example Using put() method     
String st="abc bca cab acb bac cba acb " ; But out put as ab ab ab ab ab ab how to get it?
String st="abc bca cab acb bac cba acb " ; But out put as ab ab ab ab ab ab how to get it?  String st="abc bca cab acb bac cba acb " ; I want print as ab ab ab ab ab ab ab How to do
ModuleNotFoundError: No module named 's3-parallel-put'
named 's3-parallel-put' How to remove the ModuleNotFoundError: No module named 's3-parallel-put' error? Thanks   Hi, In your python...ModuleNotFoundError: No module named 's3-parallel-put'  Hi, My
regarding out put display in html text field
regarding out put display in html text field  how to dispaly the output coming from servlet in a particular text field of html
How to use 'for' loop in jsp page?
How to use 'for' loop in jsp page?       This is detailed java code that shows how to use 'for' loop in jsp page. 'if' statement is used to test conditions while
oracle conditions
Conditions In Java Script
Conditions In Java Script   ... of JavaScript and create your first JavaScript program. About JavaScript Java... the user's browser opens the HTML file. JavaScript is different from the Java language
i want print the following out put
i want print the following out put  Hello sir i want the following out put can u provide the program in c# o/p; HELLOLLEH HELLLEH HELEH HEH H
Multiple Value initialization and retrieval by put and get method
Multiple Value initialization and retrieval by put and get method... are going to find out the flow of using put and get method of the preferences. After reading, coding, and running you are able to use the get and put method. Here
Partial Search from Hash Table in Java
Partial Search from Hash Table in Java       This section illustrates you how to put some... to put some string in the Hash Table of Java and get it for searching. This is done
Can I put coursera on my resume?
Can I put coursera on my resume?  Hi, I am beginner in Data Science... put coursera on my resume? Try to provide me good examples or tutorials links so that I can learn the topic "Can I put coursera on my resume?"
Can I put online courses on my CV?
Can I put online courses on my CV?  Hi, I am beginner in Data... I put online courses on my CV? Try to provide me good examples or tutorials links so that I can learn the topic "Can I put online courses on my CV?"
Should I put DataCamp on my resume?
Should I put DataCamp on my resume?  Hi, I am beginner in Data...: Should I put DataCamp on my resume? Try to provide me good examples or tutorials links so that I can learn the topic "Should I put DataCamp on my resume
How to Use Java Functions In EL
How to Use Java Functions In EL          To use a Java Functions in  EL we... of calling method from a jsp page. Put this java file in the /WEB-INF/classes

Ads