fork download
  1. public class AccountHandler {
  2. // Method to update account information
  3. public static void updateAccountName(List<Account> accountsToUpdate) {
  4. for (Account acc : accountsToUpdate) {
  5. acc.Name = acc.Name + ' - Updated';
  6. }
  7. update accountsToUpdate;
  8. }
  9. }
Success #stdin #stdout #stderr 0.01s 8992KB
stdin
Standard input is empty
stdout
Object: UndefinedObject error: did not understand #AccountHandler
MessageNotUnderstood(Exception)>>signal (ExcHandling.st:254)
UndefinedObject class(Object)>>doesNotUnderstand: #AccountHandler (SysExcept.st:1448)
UndefinedObject>>executeStatements (prog:1)
stderr
./prog:2: parse error, expected '}'