PageLoadTimeOut in Selenium

The above code will verify the page is getting load with expected time(5 Sec) or not.  If Page will not load completely within the given time then selenium will throw the TimeoutException in the console.

Java Program to Sort the Array in an Ascending and Descending Order

Ascending Order:

Descending Order:

 

Split string in Java

Output:

 

Find the length of the string and convert in lower / upper case in Java

Output:

 

Retrieve the indexed character from string in Java

Output:

 

Concatenate two strings in Java

Output:

 

1 2 3 6