Frequently Asked Java Program 19: Java Program to Reverse Position of Words in a String

Problem statement: Write a Java program to reverse position of words in given string i.e. word at first position in string should be at last position in string. Input String: You are awesome Output String: awesome are You Solution: It is a very easy program. You just need understanding of splitting a string, array and

Read More

Frequently Asked Java Program 18: Java Program to Reverse Every Word of a String

Hello Programmers, “Java Program to Reverse Every Word of a String” is frequently asked programming interview questions to freshers and experienced. I will try here to explain logic in simple steps so that you do not need to remember lines of code. Just implement the logic and you can code it.  Problem statement: Original string     

Read More

TestNG Tutorials 43: Difference Between “Parameters” and “parameter” in TestNG

Hello Folks, I was asked this question in an interview and I was like “Are there two terms “Parameters” and “parameter” in TestNG?“. Yes, There are two different terms, “Parameters” and “parameter“. We have used both termas many times but didn’t notice minor thing. “Parameters” is an annotation which allows us to create parameterized methods

Read More

TestNG Tutorials 42: Parameters In TestNG or Parameterization of Methods in a TestNG Class

Hello Folks, Arguments or Parameters help us to achieve reusability of codes and cleanliness of codes. We can do overloading of methods using different number, types and order of parameters to serve differently for different set of values. TestNG also allows you to parameterized your tests. We will see how can we achieve parameterisation of methods

Read More

Please wait...

Subscribe to new posts to become automation expert

Want to be notified when my new post is published? Get my posts in your inbox.