fork download
  1. Public Class CarManager {
  2.  
  3. Public static void luxary(){
  4.  
  5. List<String> Cars=new List<String>();
  6. Cars.add('AUDI');
  7. Cars.add('Benz');
  8. Cars.add('BMW');
  9. Cars.add('Ferari');
  10. Cars.add('range rover');
  11.  
  12.  
  13. for(String car:Cars){
  14. system.debug(car);
  15. }
  16.  
  17. }
  18.  
  19. }
Success #stdin #stdout #stderr 0.01s 8888KB
stdin
Standard input is empty
stdout
Object: nil error: did not understand #Class
MessageNotUnderstood(Exception)>>signal (ExcHandling.st:254)
UndefinedObject(Object)>>doesNotUnderstand: #Class (SysExcept.st:1448)
UndefinedObject>>executeStatements (prog:1)
stderr
./prog:3: parse error, expected '}'