You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could not accurately convert diagnostic (compiler.err.record.cannot.declare.instance.fields)
/home/mistria/workspace/sandboxJava/src/sandboxJava/RGB.java: error: field declaration must be static
public int red;
^
(consider replacing field with record component)
for eg
publicrecordRGB(intred, intgreen, intblue) implementsSerializable {
/** * the red component of the RGB */publicintred;
/** * the green component of the RGB */publicintgreen;
/** * the blue component of the RGB */publicintblue;
}
The text was updated successfully, but these errors were encountered:
eg
for eg
The text was updated successfully, but these errors were encountered: