Regular expressions in java(replace,replaceAll,matches,. and carrot character ^ reg epxressions)

replace replaceAll matches carrot character ^ reg epxressions java

Use of replace,replaceAll,matches, . and ^ are discussed below. ``` String myString = "Its going ... Read More

Visa card validator regular expression

Visa card validator regular expression java

Visa card validation must start with a 4 then 12 digits between 0-9.this one is for a 13 digit visa ... Read More

More collection methods in java

collection methods java

* By using methods provided by java.util.collections we can create a shallow copy of another ArrayLi ... Read More

class equals and hashcode in Java

class equals hashcode java

We have seen in out Sets example that if we add two user defined class objects of class Planet to th ... Read More

Collections .clear method in Java

clear collections java

We can use the .clear method on a List,Map or Set in java to delete all elements from the correspond ... Read More

Buffered reader in java

buffered reader java

Buffered reader in java is similar to buffered writer. It writes data to files in large chunks. Exam ... Read More

File paths using java nio in java

file paths using nio java

* Absolute file path looks like this --> C:\downloads\file.txt is an absolute path where C is the r ... Read More

Walking down a file tree using SimpleFileVisitor in java

Walking down a file tree using SimpleFileVisitor java

* If we want to search for all files in a given directory named Dir2 folder there is an issue.Dir2 ... Read More

Group patterns in java

group patterns regular expressions java

We have seen in an earlier example for matchers that we can find the start or end of a reg expressi ... Read More

Naming conventions in java

naming conventions java

* Package names should always be lowercase. If domain name contains a java keyword or contains a - ... Read More