File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes checking a condition Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "checking a condition " Watch "checking a condition " New topic
Author

checking a condition

amit jasoria
Greenhorn

Joined: Sep 06, 2013
Posts: 2
Hello ! Can anyone help me with this. I need to check the sum of two random number ceated between 1 and 10 , and if the sum is < 10 display it in a activity else regenerate next two random numbers and recheck it. Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41599
    
  55
What do you have so far? If you haven't started, what ideas have you had?


Ping & DNS - my free Android networking tools app
amit jasoria
Greenhorn

Joined: Sep 06, 2013
Posts: 2
Thanks for responding. I simply want to generate two random intigers and display them via Textview if there sum is less then 10 else regenerate the integers
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41599
    
  55
Yes, I understood that from your question. So what are the answers to my questions?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: checking a condition