Guest User

Untitled

a guest
Jan 23rd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1. public class Sample{
  2.  
  3.     public void someSampleMethod()
  4.     {
  5.         //assume there is an array called james with 500 elements.
  6.         for (int i = james.length-1; i>=0; i--)
  7.             ((Klass)james[i]).update(this, arg); //how do I write this in ruby?
  8.     }
  9.  
  10. }
  11.  
  12. public interface Klass{
  13.  
  14.     public void update(object o, object arg);
  15. }
Add Comment
Please, Sign In to add comment