Convert a Comma Separated String to a List in Java 1. Overview In this tutorial, we’ll look at converting a comma-separated String into a List of strings. Additionally, we’ll transform a comma-separated String of integers to a List of Integers. 2. Dependencies A few of the methods that we’ll use… Continue Reading java-string-with-separator-to-list

Quick Guide to the Java StringTokenizer 1. Overview In this quick article, we’ll explore a fundamental class in Java – the StringTokenizer. 2. StringTokenizer The StringTokenizer class helps us split Strings into multiple tokens. StreamTokenizer provides similar functionality but the tokenization method is much simpler than the one used by… Continue Reading java-stringtokenizer

Find the Longest Substring without Repeating Characters 1. Overview In this tutorial, compare ways to find the longest substring of unique letters using Java. For example, the longest substring of unique letters in “CODINGISAWESOME” is “NGISAWE”. 2. Brute Force Approach Let’s start with a naive approach. To begin with, we can examine… Continue Reading java-longest-substring-without-repeated-characters