aspose 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 39547
    
  27
What do you have so far? If you haven't started, what ideas have you had?


Ping & DNS - updated with new look and Ping home screen widget
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: 39547
    
  27
Yes, I understood that from your question. So what are the answers to my questions?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: checking a condition
 
Similar Threads
while loop question
Creating random Unique values
Scope and Parameters in a program
Number Trick
Need Help Understand this.