Menu
Java Programming

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 ...

The Sun One Studio Java IDE
You can develop Java applications by typing code into Windows Notepad and executing them from a DOS prompt. But sooner or later you will want to become a more productive programmer, and that requires use of an Integrated Development Environment (IDE). More ...

Change the Case of Text in a Java Program
If you compare two characters or two strings, Java will say they are different if all the characters are not the same case. To make a comparison without consideration for case, you can first convert all the characters in a string to lower case using the String objects toLowerCase toUpperCase method. More ...

New Features In Java 9
The latest version of Java has with over 150 new features, several new features and APIs to accelerate development of applications for both large and small devices. At the same time, the features provided by Java 9 help programmers to improve application's performance, security, and maintainability. More ...

Java switch case Control Statement
The if else statement tells the computer to run one set of instructions based on one result of a test, and a different set of instructions based on a different result of the test. But a switch case statement can run a different set of instructions based on any value or expression provided to the switch command. More ...

Java Operators
Operators are special characters used to manipulate operands. This artice explains arithmetic, relational, bitwise, logical, and assignment Operators, as well the conditional Operator and instanceof Operator. More ...

Java Ternary Operator Control Statement
The ternary operator (?) is often confusing to beginners. The ternary operator is used to assign one of two values to a variable based on a conditional test. More ...

Your First Java Menu
Many times the user of a sotware application performs functions by selecting items from a menu. In this article I give you an overview of the Java event model and how to create a Java program with a simple menu. More ...

Getting Started as a Java Programmer
One of the reasons for Java's rapid growth is that Sun Microsystems has always makes the Java Software Development Kit (SDK) available at its Web site for free. All you need to develop Java programs is the SDK and a basic ASCII text editor like Windows Notepad. More ...

Passing Arguments to a Java Application
In this article I use a very short example program to demonstrate several basic principles of Java programming; how to pass arguments to a Java application, how to convert a string to an int, and how to use an if structure. 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 ...

Comparing Two Text Strings in a Java Program
One task performed frequently in a Java program is to compare two strings. To accomplish this you would use the String object's equals() method. This article provides Java code to compare the text in two strings. More ...

How to Use Boolean Expressions in Java
A Java boolean can have one of two values: true or false. In some languages, such as C or C++, integer values can be treated as a boolean, with 0 equal to false and any other value equal to true. Not so in Java. In Java, you can't convert between an integer type and a boolean type. 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 ...


Learn more at amazon.com

Custom Search