This program will print a statement for when they are all equal, but not when they aren't. What is wrong?

```
int k = 0;
while (k < numbers.length - 1 )
{
    if(numbers[k]==numbers[k+1])
    {
        k++;
    }

}
if(k == numbers.length - 1)
{
    System.out.println("All the numbers are the same");  
}
else 
{
    System.out.println("All the numbers are not the same");  
} 

```