You need to sign in to do that
Don't have an account?

Error: Compile Error: Expecting ')' (Right parenthesis) but was..
I keep getting this error message: Error: Compile Error: Expecting ')' but was: 'Red' at line 5 column 16, when I run the following Apex Class:
public class Test { Map<String, String> colorCodes = new Map<String, String>(); colorCodes.put('Red', 'FF0000'); colorCodes.put('Blue', '0000A0'); String myColor = colorCodes.remove('Blue'); String code2 = colorCodes.get('Blue'); System.assertEquals(null, code2); }What am I missing here?
A method name is missing ( myTestMethod1 )