Sorting Strings

I was wondering if anybody could help me. I want to find the most frequent lettter, and replace it with another letter. It hen want to find the second most common letter and replace it with another letter. It's not working. Could anybody please help??

>proper Java class naming
Sun recommends a style for Java, but that doesn't mean it has to be used. I disagree with several of their recommendations and thus, don't use them. As long as the style is consistent, anyone should be able to follow code with minimal effort. Forcing your style onto others is the height of arrogance.

consistens class and method naming makes interaction between classes from others a lot easier.
And remember that in a professional environment coding standards are crucial and those include naming conventions. As the Sun conventions are logical and (of course) used by the standard API it's best to follow them as just about all the world does it.

I don't agree with all the Microsoft conventions for C(++) either, but when coding for Windows in C++ I do follow them for that very reason.
Same with Borland's standards for Delphi. Those are also open for debate, but following them makes for more transparency.

The greatest arrogance is thinking your ideas are better than those of the majority and following them even when it's in contradiction to commonly used best practice.

>The greatest arrogance is thinking your ideas are better than those of the majority
Yes, and I'm an arrogant, willful, stubborn person. However, this reeks of the idea that the majority is always right, and we know that to be a false statement. :)

>in a professional environment coding standards are crucial
And not all professional environments use the same coding standards. While it's incredibly unlikely that a professional would be writing a class called "cracker", we can't assume otherwise without good cause. It's entirely likely that C++ is being forced to use a coding standard that's "contradictory to common best practice". Your refusal to help based solely on that is somewhat cruel, don't you think?

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...

Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...