fork download
  1.  
  2. String firstSentence = 'We are very ' + italicStart + 'glad' + italicEnd +
  3. ' to have honey badger in our team.';
  4.  
  5. System.debug(firstSentence);
  6.  
  7. String prefix = 'Even though he acts very ';
  8. String susWords = '';
  9.  
  10. for (Integer i = 1; i <= 3; i++) {
  11. susWords += 'sus';
  12. if (i < 3) {
  13. susWords += ' ';
  14. }
  15. }
  16.  
  17. System.debug(prefix + susWords + ' today.');
Success #stdin #stdout #stderr 0.01s 8840KB
stdin
Standard input is empty
stdout
Object: String error: did not understand #firstSentence
MessageNotUnderstood(Exception)>>signal (ExcHandling.st:254)
String class(Object)>>doesNotUnderstand: #firstSentence (SysExcept.st:1448)
UndefinedObject>>executeStatements (prog:2)
stderr
./prog:5: expected expression