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

Printing volume names and drives using java

Printing volume names and drives java

We can print volumes on which our drives are mounted and actual drives using below methods Here ... Read More

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

String buffer

string buffer java

While String is a immutable class in java whose contents can't be changed ,String buffer is a writab ... Read More

Telehpone number validator reg expression

Telehpone number validator reg expression java

Telehpone number validator reg expression is below For a telephone number validator we need a reg ... Read More

More differences between interfaces and abstract classes

interaces abstract class difference java

Differences between abstract classes and interfaces * Abstract classes can have variables that ar ... Read More

Look Before you leap vs Easy to ask for forgiveness and permissions

LBYL EAFP java

There are two ways to write a program in Java 1.Look before you leap - check all the conditions ... Read More

Reading and writing data completely using java nio

reading writing completely with nio java

We have seen that we can create path instances and then we can create FileWriter and FileReader inst ... Read More

More regular expressions for replaceAll - $,[].[^],(?i)

More regular expressions for replaceAll - $ [].[^] (?i) java

Important thing to note regarding any req expressions in java is replaceAll method can replace a par ... 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