im working on this java program:
Create a Java program that creates six random numbers between 1 and 10 and for each randomly generated number it displays the text describing the number rather than the numerical value. For instance, if the number generated was 3 then it should display three; if the number generated was 6 then it should display six.
so far my code generates the random number but i dont know how to dosplay the number in text...please help
my code so far:
import java.util.*;
public class RadomNumbers {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Random rand = new Random();
int num = rand.nextInt(10);
System.out.println("Generated Random Number between 0 to 10 is : " + num);
}
}