Java Blog

 public class JAVA_016

    public static void main(String[] args)
       int number=(int)(100*Math.random( ));

          System.out.println(\"The Random Number Generated (0-99) is Even : \" + number);

          System.out.println(\"The Random Number Generated (0-99) is Odd : \" + number);

    Related Post:
  1. Program to read rollno, marks of sub1,sub2 and sub3 and on basis of that display result

  2. Application which takes your marks of six subjects from the client side and displays the percentage that you have obtained

  3. Program to read command line arguments

  4. Program to show an example of Multiple Levels of Inheritance

  5. Given a list of marks ranging form 0 to 100, write a program to compute and print the number of students marks

  6. Program to show the use of For Loop

  7. File handling program to copy bytes from one file to another

  8. Program to show an example of overloading constructors in a class to initialize its data members

  9. Program to generate SQUARE ROOT table

  10. Program to show insertion of StringBuffer, String objects and other Basic Data Types into a StringBuffer object

  11. RMI application for getting the final total price of the shopping list with some of the following items and quantities chosen by the user

  12. Program that will count the number of lines in each file that is specified on the command line

  13. Even number ,Prime no. ,Factorial of a number

  14. Even no or Prime no?????

  15. Program that demonstrates type casting

  16. RMI program of count server and client

  17. An applet program showing Clicked Event on canvas

  18. Do the following for the Array Insert the element in the array,delete an element from the array,search for a particular element Create multiple thread

  19. Program to display following things on the client machine a)date and time of the server machine b)date and time of the client machine and difference

  20. corba program of client and a DNS server where given a URL the server sends back an IP address

Didn't find what you were looking for? Find more on Program to show the use of If-Else Statement