hi,
i need java code to creat uninque id each time i submit a form.
how i can crate it.
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
hi,
i need java code to creat uninque id each time i submit a form.
how i can crate it.
What kind of id? A numeric value that is incremented by 1 each time?
If you don't understand my answer, don't ignore it, ask a question.
Hi Norm, Thanks for replying , Actually i need to create a helpdesk system, that will generate such id which is increamented each time by 1 but it would be prifixed with some string symbol like:- prabhat0000001,prabhat0000002,
regarding this id i will save all data regarding customer problem. i.e in each row this will be primary key field.
Pls Help me.
Can you explain what your problem is now?
If you don't understand my answer, don't ignore it, ask a question.
Actually my problem is how to create such unique id i.e java code to create it.
What about this: A numeric value that is incremented by 1 each time?how to create such unique id
If you don't understand my answer, don't ignore it, ask a question.
That would be done by using an assignment statement. For example:
id = id + 1;
or
id++;
If you don't understand my answer, don't ignore it, ask a question.
just give it a constant variable preceding the variable that is used to increase by 1. and do not forget to be out putted like this System.out.println(Constant variable + the increment variable);