Posts

Showing posts from February, 2017

How to change contents of files using replaceAll() method

Moved to http://www.projectdebug.com/2017/08/30/how-to-change-contents-of-files-using-replaceall-method/

Copy files from one folder to another

Moved to  http://www.projectdebug.com/2017/08/30/copy-files-from-one-folder-to-another/

Write To Excel file using Java

Moved to http://www.projectdebug.com/2017/08/30/write-to-excel-file-using-java/

Read Excel file from Java

Image
We use Excel file in our day to day work, for creating daily reports or maintaining expense sheet at home. Excel can also be used as a simple database, we can read entries from an excel file and can use them further in our program. We are using excel file to store Test execution reports, such as validation points, whether the test case is passed or not, true or false, and later using that cell information to decide whether the Test Case was passed or not. Excel automation plays an important role when using in Automation testing. We are using TestNG framework for our Test Case execution and stores the result in either Excel file(using java) or we use emailable reports from TestNG. We need to add external jar in our project to read and write excel file, POI jar is used to do this. You can download the jars from below link. Download POI Jars Follow below steps in eclipse to add the POI jars to your project After downloading the jars unzip the file Right click on your project

Just for Fun, How to Code Snake And Ladder game pattern in Java

Image
Aw, its a boring day at work today, we achieved almost everything for our sprint and sitting idle. We started playing snake and ladder game, and thought that we can also create a code to print Snake Ladder board pattern. Whoa here is the code...

Convert Gregorian Date to Julian Date

Moved to http://www.projectdebug.com/2017/08/30/convert-gregorian-date-to-julian-date/