Assignments usually means time-pressure. Taking that into account, here is the answer:
int[] a = {10, 20, 30, 40, 50, 60, 70, 80, 90, 100};
That makes an array of ten int-numbers. 10 to 100....
Type: Posts; User: ViRAL
Assignments usually means time-pressure. Taking that into account, here is the answer:
int[] a = {10, 20, 30, 40, 50, 60, 70, 80, 90, 100};
That makes an array of ten int-numbers. 10 to 100....
I read the API carefully and managed to detect my own problem, so the code functional. For now at least.
Thanks have been given to everyone who helped me!:cool:
So what you mean is that the equals()-method is getting an int (or Integer) as an argument?
Something the lines of...
public boolean equals(SomeNumberHere) {
...
...
...
Alright, I'm not gonna' lie. This is probably a silly problem for all you veterans, but I'm very (VERY) fresh in the art of Java code-writing, so forgive the noobishness.
I'm writing an...