This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
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 Elasticsearch in Action this week in the Big Data 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
Rancher

Joined: Mar 22, 2005
Posts: 42954
    
  73
What do you have so far? If you haven't started, what ideas have you had?
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
Rancher

Joined: Mar 22, 2005
Posts: 42954
    
  73
Yes, I understood that from your question. So what are the answers to my questions?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: checking a condition