fork download
  1.  
  2.  
  3. String phno = '1234567890';
  4.  
  5. System.debug(RIGHT(phno, 10));
Success #stdin #stdout #stderr 0.01s 8916KB
stdin
Standard input is empty
stdout
Object: String error: did not understand #phno
MessageNotUnderstood(Exception)>>signal (ExcHandling.st:254)
String class(Object)>>doesNotUnderstand: #phno (SysExcept.st:1448)
UndefinedObject>>executeStatements (prog:3)
stderr
./prog:5: expected expression