Incompatible Types
Incompatible types” is an error in logic that occurs when an assignment statement tries to pair a variable with an expression of types. It often comes when the code tries to place a text string into an integer — or vice versa. This is not a Java syntax error. (@StackOverflow)
There really isn’t an easy fix when the compiler gives an “incompatible types” message:
- There are functions that can convert types.
- The developer may need change what the code is expected to do.
0 Comments
Post a Comment