Hi,

I am an Engineering student. i need a java code that can convert
Alphabets to numbers.

i.e, a to 1,b to 2.................................z to 26

kindly Help

get the ascii code and subtract the value of 'a'.

What i want the program to do is..............

if input is a word "abc", it should output 123.

Get each character and cast it to an int. output each int in the order you read.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.