2007/11/21, Peter Szinek <peter / rubyrailways.com>: > Hi, > > > public char[] getTextCharacters(int [] holderForStartAndLength) > > { > > } This won't even compile because there is no "return" statement. Also, using an array to pass two values is at best sub optimal. And since you do not provide any details about the class at hand nobody can really help you. > > Could any one help me to do the same in ruby > > Oh sure! > > def getTextCharacters(holder_for_start_and_length) > end LOL Actually, we can make this even *more* rubyish: def get_text_characters holder_for_start_and_length end :-) Cheers robert -- use.inject do |as, often| as.you_can - without end