Sorry that makes no sense.
Why are you testing for equality? To sort you need to know if one value is less than another.
My algorithm started with:
if one is smaller than two
Your names...
Type: Posts; User: Norm
Sorry that makes no sense.
Why are you testing for equality? To sort you need to know if one value is less than another.
My algorithm started with:
if one is smaller than two
Your names...
Time to learn how to program. First you think about the problem, then you design a solution and then you write code.
For example here is a design in pseudo code to find and save the smaller of two...
Before you write any code, you need to design the logic for what the code is supposed to do, step by step.
Have you done that? What are the steps you need to take to find the first string the lowest...
Before you write any code, you need to design the logic for what the code is supposed to do, step by step.
Have you done that? What are the steps you need to take to find the first string.
Your...
Can you show what your program prints out?
Please wrap your code in code tags to preserve formatting. See: BB Code List - Java Forums
if you don't know what the compareToIgnoreCase method is...