For loop in java not working -


this question has answer here:

import java.util.random; public class randomhomework {     public static void main(string[] args)     {         int i;         random generator = new random();         double randomdecimals = generator.nextdouble()-.04;         int randomnumber = generator.nextint(9)+10;         for(i = 0; > 100; i++)         {             if(randomnumber >= 10.00)             {                 system.out.println(randomnumber + randomdecimals);             }         }     } } 

i having problem setup of loop , cannot figure out... runs fine when remove loop.

as can see tried declaring made no difference.

for(i = 0; > 100; i++) 

this says: start set 0 , continue long greater 100.

this stops right away


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -