Forums Register Login

incrimenting alphabet (getting next alphabet)

+Pie Number of slices to send: Send
i am storing an alphabel on a talbe say my fist entry in table is "A"
now i am taking that value in my jsp 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 java code..

String a="a";
a++;

like this .. hope you will help to get a solution..
+Pie Number of slices to send: Send
What will you do once you reach to Z ?

solution of your problem is very simple. declare your variable as char



Thanks,
Shailesh
+Pie Number of slices to send: Send
Try using a char variable instead of a String variable. You can increment that.
That is a really big piece of pie for such a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 11005 times.
Similar Threads
Help ...Dynamic Drop Down list
Java Problem
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
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 04:31:14.