Share
Explore BrainMass

Write Java program that displays a random number divisible by 5.

Write a Java program that displays a random number divisible by 5. Write well commented code and use maximum 40 lines of code.

Solution Preview

Write Java program that displays a random number divisible by 5.

Write a Java program that displays a random number divisible by 5. Write well commented code and use maximum 40 lines of code.

*************************************************
RandomApp.java
import java.io.*;
import java.util.*;
public class RandomApp {
public static void main(String[] args)
{
//declaring rndNumber as integer which is ...

$2.19