mardi 28 mars 2017

java program compiling but not executing

\the above is not executing can anyone tell the reason.
import java.util.Random; class Randomnum { public static void main(String args[]) { int a; Random d=new Random(); for(int i=1;i<=10;i++) { a=d.nextInt(3); System.out.println("rabdom numbers--->"+a); } } }




Aucun commentaire:

Enregistrer un commentaire