Java Blog

 
 
 
 public class JAVA_064
 {
    public static void main(String[] args)
    {
       Sphere obj=new Sphere( ); // file containing this class is included in zip file

       double radius=5;

       obj.radius(radius);

       System.out.println(\"The radius of sphere object is : \" + radius);
       System.out.println(\"The volume of sphere object is : \" + obj.volume( ));
    }
 }

    Related Post:
  1. Program of bubble sort

  2. Program to show the use of Logical AND Operator (&) in If Statements

  3. Program of writing Bytes to a File

  4. An applet program to display alternate filled and empty circle that to in row and column format

  5. Program to compare Strings by compring successive corresponding characters, starting with the first character in each String

  6. An applet program to display Vertical Color Bar

  7. Program to evaluate following investment equation V=P(1+R)^N

  8. Program to show the use of Conditional (Ternary) Operator

  9. Encrypt the text that you want to send on the client side. The server side decrypts it after receiving. Append server time after each word in the sent

  10. Develop a CORBA application that takes a string from client and returns whether it is palindrome

  11. Program to read rollno, marks of sub1,sub2 and sub3 and on basis of that display result

  12. Program to show the use of Increment and Decrement Operators

  13. Program to declare and initialize Boolean variables and print them on the Standard Output Device

  14. Program to show an example of creating String objects from Character Arrays

  15. An applet program to draw different shapes

  16. Program to read the ballots and count the votes cast for each candidate using an array variable count

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

  18. Program to show an example of using initialization block to initialize the data members of a class

  19. Program of an applet to display alternate filled and empty circle

  20. Program to extract a portion of a character string and print the extracted string

 
 
Didn't find what you were looking for? Find more on Program to show an example of creating a class and using its object