Menu
Java Programming

Display Variable's value in Text in a Java Program
Java uses the concatenate operator (+) to paste two or more strings together. However, you can also use the concatenate operator to display the value of a variable with a String. Java will automatically convert the integer values to Strings for display. More ...

Java if Comparison Statement
A computer program is a list of instructions for the computer to follow. Some instructions tell the computer to test a variable and to follow a group of instructions based on the result of that test. The most basic conditional test is the if statement. More ...

Introduction to Java - A Brief Overview
Java is a broadly useful programming language with various components that make the language appropriate for use on the World Wide Web. There are more than nine million Java programmers and more than three billion cellphones run it. More ...

Locate Text Within Text in a Java Program
In Java a letter or digit is called a character and a collection of letters or digits that make a phrase, sentence, or paragraph, is called a string. Java uses the String object's .indexOf method to locate one string within another. More ...

Java while Loop
A loop is a block of statements that are repeated. There are three main loop control structures available in Java: for, do and while. This article provides example of while loop code. More ...

Difference Between JSF, Servlet and JSP
This article provides a brief Overview of JavaServer Faces (JSF), Java ServerPages (JSP), and Java Servlet. More ...

Java for Loop
A loop is a block of statements that are repeated. A loop may be repeated a fixed number of times, repeat until some condition is met, or can loop indefinitely while the program is running. There are three main loop control structures available in Java: for, do and while. More ...

Determine the Length of a Text String in a Java Program
Java uses the .length method to return the length, in characters, of the text contained in a String object. In this article is the Java code to determine the length of a text string. More ...

Display Quotation Mark in Text in a Java Program
To define a String in Java, you enclosed it within quotation marks. These quotation marks are not shown when you display the string. More ...

Java Keywords
The Java programming language has 50 keywords. Each keyword has a specific meaning in the language. You can't use a keyword for anything other than its pre-assigned meaning. The following table lists Java's keywords. More ...

Java Byte, Short, Long, and Double Variable Types
In Java, as in other programming languages, information that can be changed as the program runs is stored in variables. A primitive variable type is predefined by the language and is named by a reserved keyword. There are eight primitive data types supported by the Java programming language. More ...

Display a Backslash in Text in a Java Program
Within a string there may be special characters that are used to produce things like new lines, tabs, backspaces, and carriage returns. A special character is prefixed by a backslash. More ...