We’ll show you some examples of how to use the unlabeled and labeled break
statement in Java …
Category: Java
Using The switch Statement in Java
We’ll show you some examples of how to use the switch
statement in Java …
Using The if-else Statement in Java
We’ll show you some examples of how to use if
, if-else
, if-else-if-else
and nested if
in Java …
Generating UUID in Java
We’ll show you few examples of how to generate UUID in Java …
web.xml Namespace Declaration and Schema Location Example
We’ll show you how to specify the namespace declaration and schema location in web.xml
file for different Java servlet version …
Reading Entire File into String in Java
We’ll show you some examples of how to read the entire contents of a file into a string in Java …
Check Even or Odd Number in Java
We’ll show you some examples of how to check and identify the even or odd number in Java …
Java Example: Try-with-resources Statement
We’ll show you some examples of how to manage the resources in Java 7 using try-with-resources
statement …
Java Example: Data Encapsulation
We’ll explain what is data encapsulation and show you some examples of how to apply data encapsulation in Java applications …
Java Example: Modify Strings with StringBuilder
Show you some examples of how to use StringBuilder
class to append, insert, replace, delete and reverse the strings in a string builder in Java …