Regular expression in java (another example of quantifier)

regular expression quantifier java

The below quantifier is used to replace anything that contains 1 or more h and then 0 or more i and ... Read More

Marker Interface and clone example

marker clone interface java

Marker Interfaces- A marker interface is one which has absolutely nothing in them.They have no meth ... Read More

Sets in Java

sets java

* Sets don't allow duplicate values. want to add duplicates ,then go with lists * When we use keySe ... Read More

Parents and child equal in java

parents and child equal java

If we have two classes Dog(parent) and Labrador(child) as below ``` public class Dog { ... Read More

Reading and writing data using java nio

reading writing nio java

* java.nio package came available in java 1.4 to read and write data to a file * If we compare jav ... Read More

Reading and writing byte streams using java nio

reading writing byte streams nio java

Here we will learn how to write data in binary format. In the earlier post we learned how to write ... Read More

Regular expression examples continued

more Regular expression examples continued java

``` String challenge5 = "aaabccccccccdddefffg"; /* Below is used to match one or more occurenc ... Read More

Inheritance in java

inheritance java

When a child class extends a parent class it is called inheritance. A child class can access class ... Read More

Inner nested class in java

inner nested java

We can create a class within a class and the inner class can have its own methods and variables. ... Read More

Enums in Java

enums java

We ca define a enum in any of our classes like this ``` public enum BodyTypes{ STA ... Read More