排序
Leetcode — 2942. Find Words Containing Character
Leetcode — 2942. Find Words Containing Character,It’s an easy problem with description being: You are given a 0-indexed array of strings words and a character x. Return an array ...
Java 8 Challenges
Java 8 Challenges,Coding question : Class 1 ( 3 minutes ) Create class Student Add 2 properties in this class -- String name and List subjects Create Getters and parameterized cons...
Effective Java: Avoid Strings When Other Types Are More Appropriate
Effective Java: Avoid Strings When Other Types Are More Appropriate, Effective Java Review (90 Part Series) 1 Effective Java Tuesday! Let's Consider Static Factory Methods 2 Effect...
Java String Pool
Java String Pool,We know in Java Strings are stored in the heap memory area. Inside this heap memory, there is a specific memory area called String Pool. When we create string prim...
Using StringJoiner in Java
Using StringJoiner in Java, What is StringJoiner? The StringJoiner class in Java 8 is one of the new classes that we can find in this version of Java. Many new features were includ...
String的不可变性
String的不可变性,为什么说 String 有不可变性?这种设计有什么好处? 一、String 的不可变性 String 是 final 类型,final 类不能被继承。 String 是不可变的,当修改已有字符串的值的时候,(...
Java REGEX based scanner
Java REGEX based scanner,I often use the java built-in java.util.Scanner in order to retrieve information from string streams, but what I wasn't able to do, is to extract some toke...
Clean Validation in Java with Predicates
Clean Validation in Java with Predicates,Imagine that you have to consume an API to retrieve data from people of your company. Now imagine that all these data don’t follow any pat...
Effective Java Tuesday! Override `toString`
Effective Java Tuesday! Override `toString`, Effective Java Review (90 Part Series) 1 Effective Java Tuesday! Let's Consider Static Factory Methods 2 Effective Java Tuesday! The Bu...
How Do I Compare Strings In Java
How Do I Compare Strings In Java,This article is originally published at https://coderolls.com/compare-strings-in-java/ In this article you are going to learn how to compare string...