aspose file tools*
The moose likes Java in General and the fly likes Negative code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Negative code" Watch "Negative code" New topic
Author

Negative code

Noluababalo Ntisa
Greenhorn

Joined: Oct 08, 2013
Posts: 1
Hi All

I would like to know, how to write a code that will store all the nagative numbers.


Regards
nhlanhla mazibuko
Tim Cooke
Bartender

Joined: Mar 28, 2008
Posts: 1016
    
  47

Do you have any idea how you might do this? Considering that "all the negative numbers" is an infinite Set, I think my computer would run out of memory if you tried to store each one explicitly.


Tim Driven Development
Dieter Quickfend
Bartender

Joined: Aug 06, 2010
Posts: 543
    
    4

the same way you store all the positive numbers I'd guess.


Oracle Certified Professional: Java SE 6 Programmer && Oracle Certified Expert: (JEE 6 Web Component Developer && JEE 6 EJB Developer)
Muhammad Khojaye
Ranch Hand

Joined: Apr 12, 2009
Posts: 449

Noluababalo Ntisa wrote:I would like to know, how to write a code that will store all the nagative numbers.

What you think? Have you done any analysis? Please SSE


http://muhammadkhojaye.blogspot.com/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Negative code