That did it sedj thanks alot. I keep forgetting that java is soooo strictly typed. I was assuming it knew the digits in the new Integer[] array were integers. I didn't define each one as an integer. Thanks again.
I don't know if my question was properly worded. Basically I have a created method called addMultiple and it's expected arguments are:
public void addMultiple(int index, Object[] theElements)
Passing the integer is fine but I'm having trouble passing the array expected as the second argument.
You're the man!! ;) Thanks. I guess I was thinking that !$var was the same thing but obviously not. Works like a charm...with the warnings on. Thanks again.
That still has a problem if you don't pass any arguments. You get a warning when the interpreter tried to do a condition match on a null variable. I've changed the code to the following....it works but I had to turn off warnings....
#!perl
use strict;
my $bin= shift;
my @answer;
my $dec =...
Wrote a little loop to calculate the dec from binary. Problem is that the !$bin matches if $bin is "null" or "zero". I don't want it to match zero. I need a way to get zero to pass through but I'm unsure of an easy way to do this. Additionally, chomp complains too if $bin...
Definitely adds the "cool" factor into your programming :). Now that I understand what it does it'll be easier for me to read it. Although for small programs and as a "courtesy" to other who will need to look at it I might be benificial to write it the long way. My lack of...
Thanks for the response. It makes much more sense now. I can see why people say perl is hard to read. I spent time trying to find out what the ? and the : were doing. Writing it this way:
if($number & 1 << $c) {
print '+';
} else {
print '-';
}
Makes it much easier to read. Thanks...
Not enough space to finish the subject :). Basically theres a mail server here that can be connected to via IMAP. I don't have a problem replicating it the Notes Client and then I replicate it back to my little Domino server here. But instead of this 2 step thing can I set up Domino to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.