Find large and small number in Java

Script:

Output:

 

Reverse a number in Java

Script:

Output:

 

Create a directory in Java

Script:

Output:

 

Create empty file in a directory

Script:

Output:

 

 

Rename the File Name in Java

Script:

Output:

 

 

Find Even and Odd Numbers

Script:

Output:

 

 

Get File Name of Parent Directory

Script:

Output:

 

 

Handle ArithmeticException using Try Catch in Java

Without TryCatch:

Output:

With TryCatch:

Output:

 

Right Click Action using Selenium WebDriver

Code:

Result:

 

 

Handle Javascript Alert using Selenium WebDriver

Code:

Result:

 

1 2 3 4 5 11