Join
Blogs
Questions
Videos
Tags
Members
Search
 
 
Create your own blog, earn points and get popular!

Tutorials

Java tutorials.
Andr's picture

Java Servlet Tutorial, JavaDeveloper's Java Servlet Resources

5
Your rating: None Average: 5 (2 votes)
Java Servlet Tutorial
Java servlet tutorial. This tutorial was a very early outline of the material that eventually became Core Servlets and JavaServer Pages book.
Java Servlet Tutorial

Andr's picture

Java HashMap Example

1
Your rating: None Average: 1 (3 votes)
  1. import java.util.HashMap;
  2.  
  3. public class HashMapExample{
  4.  
  5.     public static void main(String[] args) {
  6.  
  7.         HashMap myMap = new HashMap();
  8.  
  9.         map.put("1", "A");
  10.         map.put("2", "B");
  11.         map.put("3", "C");
  12.  
  13.         String one = (String) map.get("1");
  14.         System.out.println(one);
  15.     }
Andr's picture

Anonymous Array

3.25
Your rating: None Average: 3.3 (4 votes)
Anonymous Array

In java it is perfectly legal to create an anonymous array using the following syntax.

new <type>[] { <list of values>};

Anonymous array example

new int[]{1,2,3};
Andr's picture

Tomcat, Apache Tomcat download

3.333335
Your rating: None Average: 3.3 (3 votes)
JavaDeveloper's Tomcat Section

Apache Tomcat is free servlet container which has implemented the latest java servlet specification. It is official reference implementation of Java Servlet and Java Server Pages (JSP). You can download tomcat using below given link.
Andr's picture

Java Servlet, Java Servlet Resources

0
Your rating: None
What is Java Servlet?

Java Servlet is a piece of Java code that runs on server. Thus Java servlet is a server side Java component.


How Java Servlet differs from CGI?
Andr's picture

Multidimensional Array Example, Java Array Tutorial

0
Your rating: None
Java Multidimensional Array Example
Andr's picture

Multidimensional Array, Java Array Tutorial

0
Your rating: None
Java Multidimensional Array

In java, multidimensional (array of arrays) can be defined using following syntax.

<type> arrayName[]…[];
or
<type>[]…[] arrayName[];

Where []…[] denotes number of dimension.
Andr's picture

Accessing Array Elements, Java Array Tutorial

0
Your rating: None
Accessing elements of an array

Individual elements of an array can be accessed by specifying index with [] operator, with the following syntax.

arrayName[<index>]
Andr's picture

Java Array Initialization

2
Your rating: None Average: 2 (1 vote)
Java Array Initialization

Once created, array elements can be initialized explicitly using loop or initialization can be combined with the array creation using following syntax.

<type>[] arrayName = { <initialization value list>};

Following is the example of the same.

int [] myIntArray = {1,2,3,4};
Andr's picture

Java Array Creation

0
Your rating: None
Java Array Creation

Since arrays are Java objects, it can be created using new operator using following syntax.

arrayName = new <type>[<size>];
Syndicate content