The only thing you could check is that barack and obama are actually whats being stored in the array.
In your for loop just try adding a debugging message like
System.out.println("First: " +...
Type: Posts; User: Parranoia
The only thing you could check is that barack and obama are actually whats being stored in the array.
In your for loop just try adding a debugging message like
System.out.println("First: " +...
That error is because you are passing a double to the method rather than an array of doubles.
Looking at your code you might be a bit confused as to where you might need to use arrays and how to...