Menu
Java Programming

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

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

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

Basic Java Variables
In Java information that can be changed as the program runs is stored in variables. A variable is created with a statement that has the type and the name of the variable, and sometimes the value of the information being stored. 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 ...

How to Install JDK 8 on Windows and Get Started with Java Programming
Java is one of the most popular programming languages in use, particularly for client-server web applications, with nine million developers, and more than three billion mobile phones run Java. All you need to learn to program Java is the free JDK (Java Development Kit). 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 ...

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

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

How to Create the Most Basic Java Window
A lot of Java programming involves creating command line applications. But I like to get to opening a graphic window as quickly as possible. This is no problem because it's actually very easy to create a basic JFrame window. More ...

Display Text in a Java Program
In computer programming, 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. Example code to display a string in java is provided in this article. More ...

Reading Files with Java
Without the ability to read files, your application would be severely limited. In this article I show you; how to use the JfileChooser dialog box to select a file, how to display the contents of the file in your applications window, and how to scroll the Window. 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 ...

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


Learn more at amazon.com

Custom Search