I think that this one should work, but for some reason it doesn't. Does anything clear seem wrong now again?
public static boolean isDifferent(float[] array)
{
float temp;
boolean count...
Type: Posts; User: jean28
I think that this one should work, but for some reason it doesn't. Does anything clear seem wrong now again?
public static boolean isDifferent(float[] array)
{
float temp;
boolean count...
I tried to do another for loop but this one always gives me false (reasonable, considering that if I loops through it I will always find the value that I stored in temp. How do I fix this?
I put array.length - 2 and it worked :) thanks.
Hey guys, I am trying to write a program that takes an array of float values and determines if all the numbers are different for each other. I am trying to set a temp variable that stores the value...