WEBLOG
Getting Started With Atlassian Jira
Jira is one of the best software used for agile development. It is built for a better team contribution and to deliver an amazing product. Your Team members can plan and track the whole work and release a winning software. You will be guided to get a start with Jira with this tutorial. What can you do with Jira? Plan -...
Getting Started With Hibernate
Introduction Hibernate is a framework which allows you to access database tables from Java code. Before Hibernate came into existence, JDBC was widely used. JDBC is an API to access a relational database from a java program. JDBC basically allows you to execute SQL statements from Java code, so any SQL statement which you can run on a database directly,...
How To Sort List in Java
Introduction A List is an interface in the Java collection framework. It can be used to store objects. Programmers often encounter scenarios where they need to sort a List. There are several ways you can achieve this. In the next few sections, I will be going over each method in detail. 1. Using Collections.sort The Collection framework has the java.util.Collections class. This...
How To Install Pacman For Git on Windows
The 'Git for Windows' by default does not come with MSYS2 package manager called 'Pacman' and hence it is a limited version or subset of the MSYS2. Also the bash which supplied wih Git for Windows is not a full version of bash hence does not provide for full Linux environment. Given below is the easiest method (bullet 3...
How To Convert String To Date in Java
Introduction There are often scenarios in programming, where you will need to convert a date in String format to an actual Date object. For example, such a scenario may occur when the date is read from an end user via a UI and sent to the back-end code. In this article, we will understand the different ways in which you...
How To Concatenate Strings in Java
Introduction In Java, a String is a sequence of characters. There are often programming situations where you will need to concatenate Strings. There are several ways in which you can achieve this. In the next few sections, I will be going over each method in detail. Using + Operator The + operator is also known as the concatenation operator. It can be...
HomeWeblog
FT AUTOMATION
Traditional Framework Definitions (QTP)
Over the years Functional Test Automation has come a long way from WinRunner to QTP and until...
HOW-TO'S
How To Install WordPress Locally using XAMPP
1. Introduction Installing WordPress on your computer helps you try out WordPress, test themes and plugins, and learn...
NFT AUTOMATION
Getting Started with Apache JMeter
1. Introduction As a developer, you may have tested the functionality of your code hundreds of times during...
PROGRAMMING
Convert List to Array Using Stream with Param
There is an overloaded version of the Stream.toArray method which can be used to return a result...
Concatenate Strings Using String.join()
Java 8 has added a static join method to the String class. This concatenates Strings using a delimiter. Performance wise, it is similar to StringBuffer.append, but it has the added advantage that it automatically adds a delimiter. As before, this code creates string1 and string2. It invokes the join method with these Strings and specifies space (“ “) as...
Concatenate Strings Using StringBuilder.append()
In addition to String, Java has the java.lang.StringBuffer and java.lang.StringBuilder classes. These can also be used to concatenate Strings. The advantage of these classes is that both these classes are mutable, so using them does not result in the creation of new String objects. So StringBuffer and StringBuilder have a better performance as compared to the + operator...
Concatenate Strings Using StringBuffer.append()
In addition to String, Java has the java.lang.StringBuffer and java.lang.StringBuilder classes. These can also be used to concatenate Strings. The advantage of these classes is that both these classes are mutable, so using them does not result in the creation of new String objects. So StringBuffer and StringBuilder have a better performance as compared to the + operator...
Concatenate Strings Using String.concat()
The String class has a method called concat. It accepts as parameter a String value and concatenates it with the current String. The following code demonstrates this: As before, this code creates string1 and string2. It then invokes the concat() method on string1 and passes string2 as an argument. So, this code also prints the same output as before: ...
Concatenate Strings Using Plus Operator
In Java, a String is a sequence of characters. There are often programming situations where you will need to concatenate Strings. There are several ways in which you can achieve this. The + operator is also known as the concatenation operator. It can be used to concatenate Strings. The following code demonstrates this: This code creates two Strings called string1...
Working with Selenium WebElements
Table of Contents 1. Selenium WebElements 2. WebElement Locators 3. Working With Text Box 4. Working With Buttons 5. Checkboxes and Radio Buttons 6. Selecting from Drop-Downs 7. File Uploads 8. Locating Links 9. Summary In our previous tutorial, Getting Started with Selenium WebDriver, we discussed the way to set up the environment for automating testing using Selenium and wrote...
Remove Duplicates from List Using Stream
Java 8 has added the Stream API that helps to easily perform bulk operations on Collections. A new method called stream() method has been added to all the collection interfaces that returns a Stream corresponding to the underlying collection. The Stream interface has a method called distinct that can be used to eliminate duplicates. The following code demonstrates...
CODE SNIPPETS | CODEX
Java Gists
Concatenate Strings Using String.join() for Collections
There is an overloaded version of the String.join method that accepts as parameter an Iterable implementation. Since all...
Java Gists
Convert List to Array Using ToArray With Param
There is an overloaded version of the toArray method. This accepts an array as a parameter and returns a result...
Java Gists
Remove Duplicates from List Using LinkedHashSet
Another implementation of the Set interface is LinkedHashSet. LinkedHashSet maintains the order of elements and helps to overcome...
ÂÂ



