Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. fortuneman

    Passing an array in a method call

    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.
  2. fortuneman

    Passing an array in a method call

    basically what do I put in for the ???. x.addMultiple(1, ???);
  3. fortuneman

    Passing an array in a method call

    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.
  4. fortuneman

    Zero's vs Null

    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.
  5. fortuneman

    Zero's vs Null

    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 =...
  6. fortuneman

    Zero's vs Null

    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...
  7. fortuneman

    What does this line mean?

    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...
  8. fortuneman

    What does this line mean?

    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...
  9. fortuneman

    What does this line mean?

    Can someone tell me what the following line is saying? or logically doing? Thanks. print($number&1<<$c?'+':'-');
  10. fortuneman

    Can Domino server be set up to &quot;replicate&quot; from another Non-Domino srv

    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...

Part and Inventory Search

Back
Top