fork download
  1. public class Account
  2. {
  3. public static void practice()
  4. {
  5. String name = 'Dilip';
  6. Integer age = 28;
  7. Boolean isDeveloper = true;
  8.  
  9. List<String> skills = new List<String>{'Admin' , 'Developer'};
  10. Set<String> tools = new Set<String>{'Apex','Flow'};
  11.  
  12. System.debug(name);
  13. System.debug(skills);
  14. System.debug(tools);
  15. }
  16. }
Success #stdin #stdout #stderr 0.01s 8952KB
stdin
Standard input is empty
stdout
Object: UndefinedObject error: did not understand #Account
MessageNotUnderstood(Exception)>>signal (ExcHandling.st:254)
UndefinedObject class(Object)>>doesNotUnderstand: #Account (SysExcept.st:1448)
UndefinedObject>>executeStatements (prog:1)
stderr
./prog:3: parse error, expected '}'