Do you need help with your Java programming?
Click here for instant help with your Java code.
All examples in the Java Language Fundamentals category
Java Language Fundamentals
How to Format a Number in Java
The Java Keywords
How to Compare Strings in Java
Measure Time in Nano-Seconds
Using Varargs in Java
Using the Java Enum Type
How to calculate the perimeter of a rectangle
How to calculate the area of a rectangle
How to calculate the area of a circle
How to calculate the perimeter of a circle
Using the Character class
Using a Switch / Case Statement
Append a String onto another String
Get Name of User Currently Logged In to the Computer
Convert a String to Date
Convert Characters to Lower Case
Convert Characters to Upper Case
Replace Characters in a String
Getting a substring from a String
Check if String Contains another String
Compare Strings
Find the Package of an Object
Determine the Superclass of an Object
How to Create a Singleton Object
Finding Out of what Class an Object is Instantiated
How to clone objects
Get Number of Available Processors
Get Total Amount of Memory, Max Memory and Amount of Free Memory in the JVM
Redirect standard error
Redirect standard output
Compute and display elapsed time of an operation
Validate if string is a number
Validate if a String contains only numbers
Min and Max values of datatype double
Min and Max values of datatype long
Min and Max values of datatype float
Min and Max values of datatype int
Min and Max values of datatype short
Min and Max values of datatype byte
Max and Min values of datatype char
Using the StringTokenizer class
Using the StringBuilder class
Using the StringBuffer class
Split a String
Round number to fewer decimals
Placing text on the computer clipboard
Minimum and maximum values of a byte
Listing the system properties
Getting data from the computer clipboard
Get current directory
Exiting a Java program
Execute external program with Runtime and Process classes
Count letters in a String
Checking if a String is empty
Check if a String is a valid date
Search for code examples on this site