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









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 our own wanted thread into running state..?
How to put our own wanted thread into running state..?  How to put our own wanted thread into the running state by stopping already running one
How to put Focus on TextField - Design concepts & design patterns
How to put Focus on TextField  Dear Sir..... Once again, I am here... learn JAVA a bit better... I am making two windows In my Swing Application... But when I shift from one Window to another Window... I want to put the Focus
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
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
conditions
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 '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
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
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
Example Using put() method
that how a put function is used in the program, in this example first time when... C:\anshu>java put roseindia Downoload... Example Using put() method     
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
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
To put a "close window" link on a page?
To put a "close window" link on a page?  To put a "close window" link on a page
oracle conditions
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
Conditions In Java Script
Conditions In Java Script   ..._TO_REPLACE_1 Java Script is Netscape's Cross - platform, Object - based Scripting... the Java language. Now the biggest problem is the imperfect JavaScript
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
The PHP file_put_contents() function , file_put_contents php
Learn how to use file_put_contents() function in PHP Example of the PHP file_put_contents() functionADS_TO_REPLACE_1 Description Syntax of file_put_contents() PHP file_put_contents(file_name,data_to_file,[file_mode,[file_context
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
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 (adsbygoogle = window.adsbygoogle || []).push
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
Partial Search from Hash Table in Java
Partial Search from Hash Table in Java       This section illustrates you how to put some... provides you to put some string in the Hash Table of Java and get
put image on form creating in swing-swing code - Swing AWT
put image on form creating in swing-swing code  i want to display image on swing panel and get the image co ordinate by mouse clicking.and also zoom the image at particular area of image. please give solution on my email id
Setting a Filter on a Logger Handler in Java
Setting a Filter on a Logger Handler in Java       This section illustrates you how to set filter on a logger handler in Java. Generally, Filter is a program that provides
automatically break line when ever I put enter.
automatically break line when ever I put enter.  code is working fine. but in output Enter is ignored. public void action(int a){ if(a == 0){ OriginalMsg = jTextArea1.getText().toString
I want to put user guide in pdf and word in side WEB-INF and need to give link on the home page
I want to put user guide in pdf and word in side WEB-INF and need to give link on the home page  I want to put user guide in pdf and word formats... explain me how can I achieve this using spring mvc? Thanks
Java - The switch construct in Java
Java - The switch construct in Java       Switch is the control statement in java which also turns the normal flow control of the program as per conditions. It works
Java Switch Statement
Java Switch Statement       In java, switch is one of the control statement which turns the normal flow control of the program as per conditions. It's like if-else statement but it can
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
how to create interfaces in java
how to create interfaces in java  HI, Here is my code public interface validateInfo { public void validate(String empcode, String password); } class updateInfo implements validateInfo { public void update() { //code
Guys Help me with this Application(when you put the name of the website it will return the IP of the web)
Guys Help me with this Application(when you put the name of the website it will return the IP of the web)  import java.awt.*; import java.awt.event.*; import java.net.*; import java.io.*; public class MyApp extends
Guys Help me with this Application(when you put the name of the website it will return the IP of the web)
Guys Help me with this Application(when you put the name of the website it will return the IP of the web)  import java.awt.*; import java.awt.event.*; import java.net.*; import java.io.*; public class MyApp extends
changing an image based on checking checkbox using HTML & JavaScript, Please put div blocks
changing an image based on checking checkbox using HTML & JavaScript, Please put div blocks   Hello, PLease check the below code, and let me know the error. The answer should be like this - It has to display Desert.jpg once
Java Exceptions Tutorials With Examples
in Java is to use try and catch block.      How... Java Exceptions Tutorials With Examples       Exceptions in Java Exceptions
Put & Fwd
Put & Fwd       Free personal file storage and file sharing. Features include organizing files by tags, publishing tags as blogs, photo galleries, podcasts, and more, social
How to add key value pair in Java
How to add key value pair in Java  Hi, I have to store the key and value pair in Java. How to store key value pair in Java? Thanks   Hi, You can use the put method of Hashtable. Check the tutorial Creating a Hash
how can create album in java by using Stack ....
how can create album in java by using Stack ....  hi all , if i press push button put the image to the stack , and when i press pop button remove the image ..??? please help me please
How to Display Data in a tree structure on the GUI
How to Display Data in a tree structure on the GUI  how to display... showing a set of rules showing various conditions and the actions related to the conditions

Ads