Click here to Skip to main content
16,021,765 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am writing a method to sort alphabets in descending order. it holds that B<a, and b<A: if two letters only differ in upper and lower case, the upper case is put directly in front of corresponding lower case character A<a.
i have this code this far and dont know how to proceed further to achieve my purpose.

What I have tried:

private boolean isPredecessor(char value)
 {
     return this.value>value;
 }

  }
Posted
Updated 9-Jun-17 0:39am
Comments
Mohibur Rashid 9-Jun-17 5:30am    
And your problem is?
Member 13228896 9-Jun-17 5:36am    
my problem is A should precede a, (A<a) bbut that is not the case with this method.
Mohibur Rashid 9-Jun-17 5:42am    
The fact is you have done nothing. What is your algorithm? And why are you failing to implement your algorithm?

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900