StringJoiner strJoiner = new StringJoiner("."); strJoiner.add("Buggy").add("Bread"); System.out.println(strJoiner); // prints Buggy.Bread