All examples in the Java Language Fundamentals category
Java Language Fundamentals
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
Get current date and time with the SimpleDateFormat class
Exiting a Java program
Execute external program with Runtime and Process classes
Create a Date object using the Calendar class
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