fork(1) download
  1. class Program {
  2. public static void main (String[] args) {
  3. System.out.println(Right("OlaMundo", 3));
  4. }
  5.  
  6. public static String Right(String text, int length) {
  7. if (text.length() <= length) return null;
  8. return text.substring(text.length() - length);
  9. }
  10. }
  11.  
  12. //https://pt.stackoverflow.com/q/349464/101
Success #stdin #stdout 0.04s 2184192KB
stdin
Standard input is empty
stdout
ndo