A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
incrimenting alphabet (getting next alphabet)
Joined: Apr 12, 2007
Oct 18, 2007 01:53:00
i am storing an alphabel on a talbe say my fist entry in table is "A"
now i am taking that value in my
in i have to update
the "A" with "B", if it is "B" then to "C" ...
is there any way to incriment the data in jsp.. using
like this .. hope you will help to get a solution..
Joined: Aug 13, 2004
Oct 18, 2007 06:14:00
What will you do once you reach to
solution of your problem is very simple. declare your variable as char
//Declaration char myCharValriable ='A'; //Increment to B (not b) myCharValriable++;
Gravitation cannot be held responsible for people falling in love ~
Joined: Jan 29, 2003
Oct 18, 2007 06:17:00
Try using a char variable instead of a String variable. You can increment that.
char chr = 'a'; chr++; System.out.println(chr);
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
I agree. Here's the link:
subject: incrimenting alphabet (getting next alphabet)
Help ...Dynamic Drop Down list
Trouble with model for calculating and adding table values dependent on multiple rows
linked list help!
Best practice to get table form data back to Java beans
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015