|
Displaying 1 - 50 of about 14891 Related Tutorials.
|
Creating Class in JRuby
;
# Creating and Using classes in JRuby
class Employee
 ...
Creating Class in JRuby
 ...
that how one can define a class in JRuby and can define methods in class as well |
JRuby Tutorials
;
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... sequentially.
Defining Class Constants in JRuby |
Inheritance example in JRuby
to implement Inheritance
in JRuby.
In this example we are defining one class named...
that class. We use "<" symbol to show inheritance in JRuby.
 ...
# Example program of Inheritance in JRuby
class Base |
|
|
Method Overriding in JRuby
of methods in JRuby program.
In this example we have created a class "... Base class by inheriting the Base class.
After creating instances...
# Example program of Inheritance in JRuby
class Base
def |
Defining Class Constants in JRuby
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 |
|
|
File Reader example in JRuby
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  |
ArrayList example in JRuby
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 |
"TreeSet" example in JRuby
"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 |
creating class and methods - Java Beginners
creating class and methods Create a class Computer that stores... of the Computers.
This class contains following methods,
- Constructor method... ( ) method that creates array of 4 objects of Computer
class and that takes input |
Creating Views
Creating Views
Struts provides their own JSP tag library for creating view... data by model and handle them appropriately. For creating a view you should... class LoginModel implements Serializable {
private String userId;
private |
Creating Exception
Creating Exception class Myexception extends Exception{
private int detail;
Myexecption(int a){
detail=a;
}
public String toString(){
return "Myexception["+detail+"]";
}
}
class Exceptiondemo{
static void Compute(int a) throws |
new operator for creating the object of inner class
new operator for creating the object of inner class Hi ,
The folliowing is my code :
class Outer
{
class Inner{
void show... ");
}
}
}
class Test
{
public statis void main(String args |
Printing Table in JRuby
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 |
Hello World Program in JRuby
Hello World Program in JRuby
JRuby Introduction
JRuby team developed JRuby, which is a pure implementation of Ruby language
into Java programming language. JRuby |
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...:
JRubyCaseExample.rb
# Using case in JRuby
print "<=== Use |
creating java classes
creating java classes Create a Java class that can be used to store inventory information about a book. Your class should store the book title... a program that tests your class by creating and using at least two objects of the class |
Creating Volume Bar Using Gauge Class
Creating Volume Bar Using Gauge Class
This example is all about creating a volume bar using Gauge class. We are
creating the
object of Gauge class that contains |
creating JAR - Java Beginners
creating JAR I am beginner in J2ee.I am creating an application... in the library of web project.
My problems
1. I added new class in the java project... JAR to the lib, the WEBAPPlication libraries doesnot reflect the new class added |
Creating an executable jar file
Creating an executable jar file When I try to create jar.exe through CMD, the manifest file created doesn't contain Main-Class attribute, even though it is included in text file used during creation of jar file |
For Loop example in JRuby
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.
In this example |
creating a own interceptor - Struts
creating a own interceptor
i want to create own interceptor
how i will create and which class i want implement Hi friend... includes the interceptors. We can also define an interceptor class instead |
Calculating factorial in JRuby
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 |
Creating a service - JSP-Servlet
Creating a service I created a database for username and password nd... page.Then I created a DAO class which would access the database and return...) to get the data back from the database.(Service is a seperate class not like |
Creating Multiple ArrayList
Creating Multiple ArrayList I want to create multiple ArrayList .
import java.util.*;
class ArrayListNames{
public static void main(String args[]){
//here i want to create 10 arraylists of type string |
Creating Cursors in SQL
Creating Cursors in SQL
Creating Cursor in SQL is used to create a cursor in SQL... Creating Cursor in SQL. To
understand it, we create a table 'Stu_Table |
Printing Command Line arguments in JRuby
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 |
creating Xml - Java Beginners
creating Xml how we can create a xml file using java Creating XML... object. Creating XML File is possible Creating XML File is possible... by Element Object.4. Appeng this Elemnts to DOcumnet object. Creating XML |
creating new file with File class - JSP-Interview Questions
creating new file with File class I have a file uploading concept in my project. For that, while creating a new file is it necessary to give... of FileOutputStream class. If we give the path as from the file uploading location will it work |
creating java classes
creating java classes This program uses a class named DrivingLicense..., but should write the DrivingLicense class, and test it using the DLTest.java... license
/*
Class: DLTest.java
Description:Test program |
creating document in XML - XML
creating document in XML Create an XML document for catalogue of Computer Science Book in a Library. Hi friend...*;
import javax.xml.transform.stream.*;
import org.w3c.dom.*;
public class |
creating table in hibernate
creating table in hibernate how to create table by the help...
==========================================
/* Class Course */
package com.mypkg.course;
import java.io.Serializable;
public class Course implements Serializable {
/**
*
*/
private |
Creating all combinations
Creating all combinations hello,
i want a script that can generate all the all words from given alphabets
for example
if i have three alphabets... in this
thanks
import java.util.*;
public class PermutationExample |
creating web services - WebSevices
creating web services Actually i am new for web services so Plz tell...
Project Name: WebServiceTutorial
Class Name:-Krishna
Method Name:-giveWishes... stopped publish Window
II. Steps for Creating Web Service
1.Create a new Dynamic |
"Hello World" program in Swing and JRuby
"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 |
DOJO+Creating button of same size.
DOJO+Creating button of same size. I am trying to create two buttons in DOJO of equal size. But the size of the buttons varies depending upon the name of the button that will get displayed. I tried by giving a class atribute |
Creating JAR File - Java Beginners
Creating JAR File Respected Sir,
Thankyou very much for your..., which says, Failed to load Main-Class manifest attribute from H:\Stuff\NIIT\Java\ProjectNIIT\class\NIITInteracts\NIIT.jar
where NIITInteracts is a package |
Creating Cursors in SQL
Creating Cursors in SQL
Creating Cursor in SQL is used to create a cursor in SQL... Creating Cursor in SQL. To
understand it, we create a table 'Stu_Table |
creating multiple threads - Java Beginners
creating multiple threads demonstrate a java program using multiple.... Hi friend,
Use the following code:
import java.util.*;
class...() );
}
}catch(Exception e){}
}
}
}
public class CreateStack{
public static |
creating browse button - Java Beginners
creating browse button how can we create a browse button along... javax.swing.JTextField;
public class BrowsePath extends JFrame implements...);
}
}
class Chooser extends JFrame {
JFileChooser chooser |
creating tables as an xml document - XML
creating tables as an xml document Create a table of a medal tally... javax.xml.transform.stream.*;
public class XmlServlet extends HttpServlet{
public static void...();
DocumentBuilder docBuilder = builderFactory.newDocumentBuilder();
//creating a new |
Creating Composite Widgets using GWT
Creating Composite Widgets using GWT
This example describes the Basics for creating....
VerticalPanel panel = new VerticalPanel()
Creating a Vertical panel named |
a multithreaded program by creating a subclass of Thread
a multithreaded program by creating a subclass of Thread I want...: concurrent
thread1: programming
class ThreadSynchronization...);
}
}
class MyThread extends Thread
{
static String message |
creating jdbc sql statements - JDBC
creating jdbc sql statements I had written the following program...*;
public class FirstJdbc {
public static void main(String args... connection code
import java.sql.*;
public class DatabaseConnect{
public |
Creating JAR File - Java Beginners
Creating JAR File Respected Sir,
I would like you to please help... or class files. And what is this manifest file, and what changes needs to be done...*;
import java.util.jar.*;
public class CreateJar {
public static int |
Creating a log in a text file - Applet
Creating a log in a text file Hey there,
I have created an applet... javax.swing.*;
import java.applet.Applet;
import java.net.*;
public class... class WriteText {
WriteText(){
try {
String str = text.getText |
creating index for xml files - XML
creating index for xml files I would like to create an index file for xml files which exist in some directory.
Say, my xml file is like below... with Java and I want to know which libarary or class package or severices I have |
Java GUI code- creating a circle
Java GUI code- creating a circle My assignment is to write a program...*;
import java.awt.event.*;
public class CircleGUI extends JFrame...);
}
//button handler class
private class |
Creating methods in servlets - JSP-Servlet
Creating methods in servlets I created servlet and jsp file.I Instantiated 3 objects and Defined 2 methods in my servlet, first method should write...;
/**
*
* @author mihael
*/
public class mlNewServlet3 extends HttpServlet |
Creating Menu Using Canvas Class
Creating Menu Using Canvas Class
This example shows how to create the menu and call the canvas class to show
the toggle message. The Toggle message will appear when |
Creating Bean Class In JSF using NetBeans
Creating Bean Class In JSF using NetBeans
 ... illustrates how to create the Bean Class. This is also called
the Backing Bean Class. This bean class is used to store the values of the form
components |