Let's say i have a String "ABCD"
How do i code it so that when i pass this string into a method, it'll process A as 0, B as 1, C as 2 and D as 3?
In other words, when "ABCD" is passed into the method, i want to operate on 0123, when ACDB, 0231 and so on...
Thx guys...
(If it's possible, i would like to avoid using switch-case)


Reply With Quote


Bookmarks