Home Tutorials Jruby JRuby Tutorials

Related Tutorials


 
 

Share on Google+Share on Google+

JRuby Tutorials

Advertisement
JRuby team developed JRuby, which is a pure implementation of Ruby language into Java programming language.

JRuby Tutorials

     

  1. Hello World Program in JRuby
    JRuby team developed JRuby, which is a pure implementation of Ruby language into Java programming language. JRuby supports various features of both Java and Ruby such as Object Oriented Programming and duck-typing as Ruby.
     
  2. Calculating factorial in JRuby
    In the previous section of "Running first JRuby program" example you must be aware with the way to run JRuby program. Now in this example you will know to "Calculate Factorial in JRuby".
      
  3. Printing Table in JRuby
    In the previous sections of JRuby tutorials you have studied how to run program in JRuby and to calculate factorial in JRuby. Now in this part of JRuby tutorial we will tell you how to take input in  JRuby from the console and print output table on the console output.
     
  4.  File Reader example in JRuby
    In this section of JRuby tutorial we will study to Read File in JRuby. We can read and write file on the console  or in a file with the JRuby. Here in our example we are reading a text file and printing its content on the console.
       
  5. Printing Command Line arguments in JRuby
    In this section of JRuby tutorial we will discuss about printing command line arguments in JRuby program. We can also take arguments from the command line into our JRuby program. 
       
  6. TreeSet example in JRuby
    In the previous sections of JRuby tutorials we have learned about how to use Java classes in JRuby program now here is one more example that uses Java class TreeSet. 
       
  7. "Hello World" program in Swing and JRuby
    In the previous section of JRuby Tutorials you have studied how to use Java classes in JRuby examples to show results on your console. Now we are going to describe you how to use Swing in JRuby program. 
     
  8. For Loop example in JRuby
    In previous section you have studied a lot about JRuby example. In this example we will show you how to use For-loop in JRuby.
      
  9. Using "Case" control in JRuby
    In the previous section of JRuby tutorial you have learned to use for-loop in JRuby. Now we will discuss that how to use "Case" control in our program to provide working of program on selected case values.
      
  10. Creating Class in JRuby
    In this part of JRuby tutorial you will come to know that how one can define a class in JRuby and can define methods in class as well as can call them.
     
  11. Inheritance example in JRuby
    In the previous sections of JRuby tutorials you became familiar with the way that how Classes are to be declared in JRuby and how these can be used to call methods of a class. Now you will learn that how to implement Inheritance in JRuby. 
      
  12. Method Overriding in JRuby
    In this part of JRuby tutorial you will know to implement overriding of methods between the classes. In earlier examples of JRuby you have studied a lot about to create class, inheriting class and calling methods of classes.
      
  13. ArrayList example in JRuby
    In this section of JRuby tutorial you will learn how to create and add elements in ArrayList using the JRuby. ArrayList is used to store elements in the list which can be accessed sequentially.
     
  14. Defining Class Constants in JRuby
    In this example you will learn about using Class Constants in JRuby program. Constants can be defined within the scope of  classes, but  they are not as instance variables, constants can be accessed from outside the class.

     

Advertisements

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: June 13, 2009

Related Tutorials

Discuss: JRuby Tutorials  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0
DMCA.com