Archive for the 'Java Examples' Category

Calculator Code - Writing Calculator Programs

In this example you will find out code for calculator in different languages such as Java, Swing, C, C++ and more. This tutorial is specially designed for the new programmer who has just started to learn programming languages.

In this section you will see how to write code for calculator and use it in your […]

Facelet Tags Library – JSF Facelets UI Tags Library and Reference

There could be several tags in JSF and Facelets but with the help of this blog story on Facelets UI Tags, I’ll try to explain all the UI tags in facelets.

Given Below are the List of UI faceletes tags…

ui:component
ui:composition
ui:debug
ui:decorate
ui:define
ui:fragment
ui:include
ui:insert
ui:param
ui:remove
ui:repeat

Now lets see what is the use of these UI tags in Facelets one by one…

1. ui:component […]

Declaration Tag in JSP

Before you read about declaration tags in JSP, you must know what is JSP and why it is used in programming. So lets see the …
Quick answers about JSP
JSP Stands for Java Server Pages
What is it? – Sever Side Scripting Language, a Java Servlet Technology
Developed by – Sun
What are Tags in JSP?
JSP tags are used […]

Java Programming for the beginners

Example of calculating and adding two numbers in Java
The given example of java is basically designed for the beginners who want to make career in the java technologies. When you start learning java there are certain things that you must keep in mind such as… what is the structure of Java Programming or where to […]

If Else Ladder

In this section, you will study the use of if-else ladder in jsp.
A ladder is the vertical or inclined set of steps. Here we are providing you an example to show the if-else ladder. We have defined integer variable i and initialize it with value 2. We are using if-else loop for the ladder and […]

Palindrome Numbers in Java

This is a simple java array example that will show you how to get and print palindrome numbers using array in java. Apart from this you will learn I/O packages and Input and output streams in java.
You will be able to find out the benefit of using loops and implementing it in your Java Program. […]

Java Examples of multidimensional array

This is a multidimensional array example in Java and here we will calculate the sum of two matrix. In the previous example you have seen that how to calculate the sum of three different static numbers in java.
The example is same as the earlier one but still it’s different because this one is written using […]

Calculate numbers in Java

This is again another simple example to learn java fast. In this example you will see how to calculate the addition of two numbers in Java. Apart from this, here you will find out the use of system.out.println() as well.
Earlier It was quite difficult to learn java through a book but thanks to number of […]

Change the array value using Java Program

This Java Array Example is going to explain the method of changing array values. Using this example you will learn how to define array, assigning values to it and changing the value of these array.
Like any other Java Example, this is too easy to understand. After going through this Java array example, you will be […]

Java - use two matrixes for dividing the two elements

Two Matrix array in Java and how to use this while developing application! Java programming and using of array is quite confusing for any fresher and when it’s comes to use matrix it turns more complex.
Well because as a Java Expert I know all these problems and had already faced it prior, I tried my […]