im creating a program that will convert certain character into its ascii value then i will change the value. for example the ascii value of A is 65 right? but i want to change the value of it into 1 so if i input A the output of it is 1. how am i supposed to do this? pls give some ideas. tnx
theCompiler 0 Light Poster
Recommended Answers
Jump to PostA Java char is, by definition, a numeric value that represents a character. So you can freely mix character representations such as 'a' or 'Z' and numeric expressions, eg
int i = 'C'; // i = 67 int j = 'C' - 'A'; // j = 2 …
All 3 Replies
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
theCompiler 0 Light Poster
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
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.