Date handling in java

date java

Lets define a date in the form of a String ``` String ds = "15/03/2000"; ``` Then we use objec ... Read More

Debug prospective in java

debugging java

Debugging is different than running a program. Instead of running the entire program at once ,we deb ... Read More

Functions in jmeter - __javaScript

__javaScript jmeter

${__javaScript(new Date();)}--->Used to print current date ${__javaScript(2>7)}--->will give fals ... Read More

Encapsulation

encapsulation java

Encapsualtion is used to make class members non-accesible outside the class. We can make some cl ... Read More

Collection methods (compareTo,min,max,sort)

collection methods compareTo min max java

Collections have various inbuilt methods that are very powerfull like Collections.reverse , Collecti ... 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

Mapping nio and io methods in java

Mapping nio and io methods java

* Older versions of java used io methods and new ones use java.nio * We can convert from java.io to ... Read More

Sets methods in Java

set methods java

Lets discuss some methods commonly used with Sets in java * addAll is used to add one set to ano ... Read More

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

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