Hi

Well on the one site you have an array with Int's in the other you have only 
one int.
IF you want to compare this , maybe you can use an for loop
.. For(int i=0;numbers.length;i++){
        comp=number[i];
}
Somthink like tjis....


Sandro




-----Ursprüngliche Nachricht-----
Von: [email protected] 
[mailto:[email protected]] Im Auftrag von nguyen 
thanh lam
Gesendet: Donnerstag, 23. Juli 2009 11:58
An: Free Java Programming Online Training Course By Sang Shin
Betreff: [java programming] compare an int


Int numbers={1,2,3,4,5}
int comp;
if (comp == numbers[] )  // <==error here (" cannot compare int with
int[] ")

I want to compare a variable with many others. how i should do?


#####################################################################################
SEB AG          
Hauptsitz               
Frankfurt am Main                                               
HRB 6800
                                                        
Vorsitzender des Aufsichtsrates: Fredrik Boheman

Vorstand: Jan Sinclair, Vorsitzender
Renate Bloß-Barkowski
Peter Buschbeck
Liselotte Hjorth
Ian Lees
Jens Liehr

#####################################################################################
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese 
E-Mail (inklusive aller Anhänge).
Bitte fertigen Sie keine Kopien an oder bringen den Inhalt anderen Personen zur 
Kenntnis.
E-Mails sind anfällig für Datenverfälschungen, können abgefangen werden und 
Computerviren verbreiten.
Außer für Vorsatz und grobe Fahrlässigkeit lehnen wir jede Verantwortung für 
derartige Vorgänge ab.

This e-mail is confidential and may contain legally privileged information. 
If you have received it by mistake, please inform us by reply e-mail and then 
delete it (including any attachments) from your system.
You should not copy it or in any other way disclose its content to anyone.
E-mail is susceptible to data corruption, interception, unauthorised amendment, 
tampering and virus infection.
We do not accept liability for such actions or the consequences thereof.
#####################################################################################

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to