r/javahelp • u/rpgirl5284 • Apr 01 '22
help with java code
hi i’m trying to write code for an assignment and a part of my code (i < drywet.length && i < wetwet.length) are underlined red. it says “the operator < is undefined for the argument type(s) int, Object”
can someone please explain what i need to do to fix it?
0
Upvotes
1
u/D0CTOR_ZED Apr 01 '22
Do they have a length field or are you trying to call a method? If you are calling a method, do you need to provide any parameters?