Testing Excellence

  • QA Basics
  • Technical QA
  • Agile Testing
  • Questions
  • Quizzes

Convert String to Int in Java With Examples

Updated: December 2, 2018 - Amir Ghahrai

java convert string to int

How to convert a String to an Int in Java? If the String contains only numbers, then the best way to convert the String to Int is by using Integer.parseInt() or Integer.valueOf(). If the String contains both numbers and characters, then… Read More »

Tags: Java, Technical Skills


Extract Numbers From String Using Java Regular Expressions

Updated: December 2, 2018 - Amir Ghahrai

extract numbers from string java regex

The following are examples which show how to extract numbers from a string using regular expressions in Java. Being able to parse strings and extract information from it is a key skill that every tester should have. This is particularly… Read More »

Tags: Java, Technical Skills


How to Loop Over ArrayList in Java

Updated: December 2, 2018 - Amir Ghahrai

java convert string to int

Looping over an ArrayList in Java. In this tutorial, we look at five different ways we can iterate through an ArrayList in Java. As of Java 8, we can use the forEach method as well as the iterator class to loop… Read More »

Tags: Java, Technical Skills


How to Parse JSON in Java

Updated: March 18, 2019 - Amir Ghahrai

parse json java

JSON stands for JavaScript Object Notation, and it is based on a subset of JavaScript. As a data-exchange format, it is widely used in web programming. Here we show how to parse JSON in Java using the org.json library. A JSON object… Read More »

Tags: Java, JSON, Technical Skills


How to Uninstall IntelliJ From Mac OS

Updated: December 2, 2018 - Amir Ghahrai

uninstall intellij from mac

In order to completely remove and uninstall IntelliJ from Mac OS, you need to delete the following directories and sub-directories: Uninstall IntelliJ from Mac OS Configuration (idea.config.path): ~/Library/Preferences/<PRODUCT><VERSION> Caches (idea.system.path): ~/Library/Caches/<PRODUCT><VERSION> Plugins (idea.plugins.path): ~/Library/Application Support/<PRODUCT><VERSION> Logs (idea.log.path): ~/Library/Logs/<PRODUCT><VERSION> Where PRODUCT would be… Read More »

Tags: Technical Skills


Selenium WebDriver With Java 8 – Lambda Expressions and Collections Stream

Updated: December 2, 2018 - Amir Ghahrai

selenium webdriver java8

From Selenium 3.0, minimum Java version is 8. In this article, we illustrate how to use Java 8 features like Lambda expression and Collections Stream to simplify Selenium WebDriver code. Lambda Expression Java lambda expressions are Java’s first step into… Read More »

Tags: Java, Selenium WebDriver, Technical Skills, Test Automation


How To Query For All Partition Keys in DynamoDB?

Updated: December 2, 2018 - Amir Ghahrai

DynamoDB

Amazon DynamoDB is a fully managed NoSQL database service that provides fast and predictable performance with seamless scalability. With DynamoDB, you can create database tables that can store and retrieve any amount of data, and serve any level of request… Read More »

Tags: Java, Technical Skills


How to Encode and Decode JSON Byte Array

Updated: December 2, 2018 - Amir Ghahrai

encode and decode json

The typical way to send binary in JSON is to base64 encode it. Java provides different ways to Base64 encode and decode a byte[]. One of these is DatatypeConverter. Suppose we have a JSON Array as listed below: {“menu”: { “id”:… Read More »

Tags: Java, JSON, Technical Skills


How to Get the Current Working Directory in Java

Updated: March 18, 2019 - Amir Ghahrai

java current working directory

The current working directory means the root folder of your current Java project. We can get the current working directory in Java using the following system property function: String cwd = System.getProperty(“user.dir”); Example: public class CurrentWorkingDirectory { public static void… Read More »

Tags: Java, Technical Skills


How to Put Data in AWS Kinesis Stream With Java

Updated: December 2, 2018 - Amir Ghahrai

aws_kinesis

Amazon Kinesis Streams enables you to build custom applications that process or analyze streaming data for specialized needs. Amazon Kinesis Streams can continuously capture and store terabytes of data per hour from hundreds of thousands of sources such as website… Read More »

Tags: Java, Technical Skills


  • 1
  • 2
  • Next Page »



Selected Articles

  • Test Automation Problems
  • Test Automation Strategy
  • Agile Test Strategy example
  • How QAs add value in agile
  • Agile without automation
  • How agile killed managers
  • Agile testing challenges
  • Testing e-commerce websites
  • Role of QA manager in agile
  • Are you a good agile tester?
  • BDD tips and best practices
  • Myths of test automation
  • Test automation tips
  • Test automation pros & cons






Favorites Links

Java for Testers

Selenium Tutorial

Testing in Agile and DevOps

 

Copyright © 2019 All rights reserved · www.testingexcellence.com

  • About
  • Contact
  • Subscribe
  • Privacy Policy
  • Terms of Use