April 2018

What Is Node and When Should I Use It?

  • Satish 

So you’ve heard of Node.js, but aren’t quite sure what it is or where it fits into your development workflow. Or maybe you’ve heard people singing Node’s praises and now you’re wondering if it’s something you need to learn. Perhaps you’re familiar with another back-end technology and want to find out what’s different about Node. If that sounds like you, then keep reading. In this article, I’ll take a beginner-friendly, high-level look at Node.js and its main paradigms. I’ll examine… Read More »What Is Node and When Should I Use It?

Case-Insensitive String Matching in Java

  • Satish 

1. Overview There are many ways to check if a String contains a substring. In this article, we’ll be looking for substrings within a String while focusing on case-insensitive workarounds to String.contains() in Java. Most importantly, we’ll provide examples of how to solve this issue. 2. The Simplest Solution: String.toLowerCase The simplest solution is by using String.toLowerCase(). In this case, we’ll transform both strings to lowercase and then use the contains() method: assertTrue(src.toLowerCase().contains(dest.toLowerCase())); We can also use String.toUpperCase() and it would provide the same result. 3. String.matches With Regular Expressions Another option is by… Read More »Case-Insensitive String Matching in Java