14th Jan 2023, 3:26 PM
Vishesh Kumar
2 Answers
+ 8
I think you've missed the difference between == and =.
14th Jan 2023, 3:39 PM
Ausgrindtube
Ausgrindtube - avatar
+ 2
Java conditions must be boolean types. So if (i=1) is wrong, not condition but if( i==1) is correct way.. 1||1 is not supports. int || int is wrong. true || false is valid.
14th Jan 2023, 6:38 PM
Jayakrishna šŸ‡®šŸ‡³