Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Robert Richardson   on Nov 19 In Java Category.

  
Question Answered By: Sairah Hashmi   on Nov 19

Another approach would be to have an array of char ("char[65536]
Uppercase;") which contains all characters supported on your
platform; then add the following:
Uppercase ['a'] = 'A';
Uppercase ['b'] = 'B';
...
Uppercase ['z'] = 'Z';

Then, whenever you want to substitute a character by its uppercase
version, use
Uppercase [ch]
instead of ch.

I know, looks ugly, but according to OP I wanted to avoid calling any
functions, such as toupper().

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on how to make alphabets uppercase without using function Or get search suggestion and latest updates.


Tagged: