Results 1 to 3 of 3
Thread: Type Mismatch error
- 10-10-2010, 09:13 AM #1
Member
- Join Date
- Oct 2010
- Posts
- 6
- Rep Power
- 0
Type Mismatch error
I keep getting a type mismatch. Could someone explain why? also i++ considered a dead code??
sorry made a small error before in typing code.
public static boolean contains(int[] A, int int1){
for (int i = 0; ,i < A.length; i++) {
if (int1 == A[i])
return true;
}
else {return false;}
}
}
- 10-10-2010, 09:55 AM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,402
- Blog Entries
- 7
- Rep Power
- 17
- 10-10-2010, 11:16 AM #3
Senior Member
- Join Date
- Oct 2010
- Posts
- 316
- Rep Power
- 3
Similar Threads
-
printable area mismatch between Java & C++ possible?
By r00tb33r in forum AWT / SwingReplies: 0Last Post: 06-16-2010, 06:29 AM -
SQLException:java.sql.Exception:Data type mismatch in criteria expresion
By Dumisan in forum JDBCReplies: 6Last Post: 02-21-2010, 12:54 AM -
Error: unexpected type
By silvia in forum New To JavaReplies: 3Last Post: 02-05-2010, 09:54 PM -
Error Message:Editor does not contain a main type
By Deepa in forum New To JavaReplies: 0Last Post: 11-27-2008, 12:25 PM -
type mismatch: cannot convert from double to float
By bugger in forum New To JavaReplies: 2Last Post: 11-16-2007, 01:24 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks