[java] How to get numeric position of alphabets in java?